summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJesse Vincent <jesse@fsck.com>2026-10-09 16:51:41 -0700
committerJesse Vincent <jesse@fsck.com>2026-10-09 16:51:41 -0700
commit8e56a31b1b536fc45d8f65581284af47aa87e880 (patch)
tree4ac675daa3415bc836f707c7e60237ac7b66c7d5 /tests
parent112fc1631f35fafeefde5e96a6b95b5ea391f1b1 (diff)
Release prep for v7.0.0release-7.0-notes
- RELEASE-NOTES.md: v7.0.0 section covering everything on dev since v6.4.2, led by the brainstorming rebuild (#2463, #2482, #2483) - Bump all 11 declared manifests to 7.0.0; OpenCode pin examples point at #v7.0.0 - bump-version.sh --audit matches whole version strings only, so 7.0.0 no longer matches inside 127.0.0.1 - test-render-graphs.sh resolves the real node binary so its empty-PATH case works under version-manager shims (mise, asdf)
Diffstat (limited to 'tests')
-rw-r--r--tests/version-bump/test-bump-version.sh13
-rwxr-xr-xtests/writing-skills/test-render-graphs.sh4
2 files changed, 16 insertions, 1 deletions
diff --git a/tests/version-bump/test-bump-version.sh b/tests/version-bump/test-bump-version.sh
index 195d88a..2f77a48 100644
--- a/tests/version-bump/test-bump-version.sh
+++ b/tests/version-bump/test-bump-version.sh
@@ -73,4 +73,17 @@ cmp -s "$TEST_ROOT/package.before" "$invalid_repo/package.json" \
cmp -s "$TEST_ROOT/plugin.before" "$invalid_repo/.hermes-plugin/plugin.yaml" \
|| fail "invalid YAML manifest changed"
+audit_repo="$TEST_ROOT/audit-boundaries"
+make_fixture "$audit_repo" $'name: superpowers\nversion: 1.2.3'
+/bin/bash "$audit_repo/scripts/bump-version.sh" 4.0.0 >/dev/null
+printf 'host = "10.4.0.0"\n' >"$audit_repo/server.js"
+printf 'pin: superpowers.git#v4.0.0\n' >"$audit_repo/INSTALL.md"
+/bin/bash "$audit_repo/scripts/bump-version.sh" --audit >"$TEST_ROOT/audit-boundaries.out"
+
+grep -q 'INSTALL.md' "$TEST_ROOT/audit-boundaries.out" \
+ || fail "audit missed an undeclared #v4.0.0 pin"
+if grep -q 'server.js' "$TEST_ROOT/audit-boundaries.out"; then
+ fail "audit flagged 10.4.0.0 as version 4.0.0"
+fi
+
echo "Version-bump tests passed"
diff --git a/tests/writing-skills/test-render-graphs.sh b/tests/writing-skills/test-render-graphs.sh
index 349cd47..8bda626 100755
--- a/tests/writing-skills/test-render-graphs.sh
+++ b/tests/writing-skills/test-render-graphs.sh
@@ -4,7 +4,9 @@ set -u
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
REPO_ROOT="$(cd "$SCRIPT_DIR/../.." && pwd)"
SCRIPT_UNDER_TEST="$REPO_ROOT/skills/writing-skills/render-graphs.js"
-NODE_BIN="$(command -v node)"
+# Resolve the real binary: version-manager shims (mise, asdf) can't find node
+# under the empty PATH used for the missing-Graphviz case.
+NODE_BIN="$(node -p 'process.execPath')"
PASSES=0
FAILURES=0