From 9ed3652de91e8bb8ae736b0e33ccf713a6269a50 Mon Sep 17 00:00:00 2001 From: Defame1297 Date: Sun, 28 Jun 2026 16:59:36 +0000 Subject: [PATCH] test: update stale file-existence checks after PRD and HUMANS.md moves MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Why Two test suites were asserting on paths that were intentionally changed: - docs/HUMANS.md moved to docs/wiki/HUMANS.md (wiki submodule) - docs/prd/ deleted after migrating all PRDs to Gitea (#16–#19) Updated checks to assert the new locations and confirm the old directories are gone. --- Refs: #15 --- tests/test-governance-layer.sh | 6 +++--- tests/test-instructions-and-docs.sh | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/tests/test-governance-layer.sh b/tests/test-governance-layer.sh index fa79931..b74d6bb 100755 --- a/tests/test-governance-layer.sh +++ b/tests/test-governance-layer.sh @@ -83,9 +83,9 @@ echo "--- Supporting docs ---" && pass "docs/ai-constitution.md exists" \ || fail "docs/ai-constitution.md missing" -[[ -f "$REPO_ROOT/docs/HUMANS.md" ]] \ - && pass "docs/HUMANS.md exists" \ - || fail "docs/HUMANS.md missing" +[[ -f "$REPO_ROOT/docs/wiki/HUMANS.md" ]] \ + && pass "docs/wiki/HUMANS.md exists (moved to wiki)" \ + || fail "docs/wiki/HUMANS.md missing" [[ ! -f "$REPO_ROOT/docs/research/governance_principles/ai-constitution.md" ]] \ && pass "ai-constitution.md removed from research folder (moved to docs/)" \ diff --git a/tests/test-instructions-and-docs.sh b/tests/test-instructions-and-docs.sh index 7a9b7c3..754d74b 100755 --- a/tests/test-instructions-and-docs.sh +++ b/tests/test-instructions-and-docs.sh @@ -158,15 +158,15 @@ echo "" echo "--- 0008: docs/ restructure ---" -for dir in prd notes adr; do +for dir in notes adr; do [[ -d "$REPO_ROOT/docs/$dir" ]] \ && pass "docs/$dir/ exists" \ || fail "docs/$dir/ missing" done -[[ -f "$REPO_ROOT/docs/prd/chunk-1.md" ]] \ - && pass "docs/prd/chunk-1.md exists (migrated)" \ - || fail "docs/prd/chunk-1.md missing" +[[ ! -d "$REPO_ROOT/docs/prd" ]] \ + && pass "docs/prd/ deleted (migrated to Gitea)" \ + || fail "docs/prd/ still exists — should have been deleted after Gitea migration" [[ ! -f "$REPO_ROOT/docs/prd-chunk-1.md" ]] \ && pass "docs/prd-chunk-1.md removed from docs root" \