Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 45 additions & 9 deletions tests/validate_structure.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,53 @@
cd "$REPO_ROOT"

# Required root files
[ -f README.adoc ] && pass "README.adoc present" || fail "README.adoc missing"
[ -f LICENSE ] && pass "LICENSE present" || fail "LICENSE missing"
[ -f SECURITY.md ] && pass "SECURITY.md present" || fail "SECURITY.md missing"
[ -f ABI-FFI-README.md ] && pass "ABI-FFI-README.md present" || fail "ABI-FFI-README.md missing"
if [ -f README.adoc ]; then
pass "README.adoc present"
else
fail "README.adoc missing"
fi
if [ -f LICENSE ]; then

Check failure on line 21 in tests/validate_structure.sh

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Use '[[' instead of '[' for conditional tests. The '[[' construct is safer and more feature-rich.

See more on https://sonarcloud.io/project/issues?id=hyperpolymath_thejeffparadox&issues=AaA_CS2Ybsq2ePVCtiH9&open=AaA_CS2Ybsq2ePVCtiH9&pullRequest=69
pass "LICENSE present"
else
fail "LICENSE missing"
fi
if [ -f SECURITY.md ]; then
pass "SECURITY.md present"
else
fail "SECURITY.md missing"
fi
if [ -f ABI-FFI-README.adoc ]; then

Check failure on line 31 in tests/validate_structure.sh

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Use '[[' instead of '[' for conditional tests. The '[[' construct is safer and more feature-rich.

See more on https://sonarcloud.io/project/issues?id=hyperpolymath_thejeffparadox&issues=AaA_CS2Ybsq2ePVCtiH-&open=AaA_CS2Ybsq2ePVCtiH-&pullRequest=69
pass "ABI-FFI-README.adoc present"
else
fail "ABI-FFI-README.adoc missing"
fi

# Required directories and key files
[ -d engine ] && pass "engine/ directory present" || fail "engine/ directory missing"
[ -f engine/test/runtests.jl ] && pass "engine/test/runtests.jl present" || fail "engine/test/runtests.jl missing"
[ -d node-alpha ] && pass "node-alpha/ directory present" || fail "node-alpha/ directory missing"
[ -d node-beta ] && pass "node-beta/ directory present" || fail "node-beta/ directory missing"
[ -d orchestrator ] && pass "orchestrator/ directory present" || fail "orchestrator/ directory missing"
if [ -d engine ]; then

Check failure on line 38 in tests/validate_structure.sh

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Use '[[' instead of '[' for conditional tests. The '[[' construct is safer and more feature-rich.

See more on https://sonarcloud.io/project/issues?id=hyperpolymath_thejeffparadox&issues=AaA_CS2Ybsq2ePVCtiH_&open=AaA_CS2Ybsq2ePVCtiH_&pullRequest=69
pass "engine/ directory present"
else
fail "engine/ directory missing"
fi
if [ -f engine/test/runtests.jl ]; then

Check failure on line 43 in tests/validate_structure.sh

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Use '[[' instead of '[' for conditional tests. The '[[' construct is safer and more feature-rich.

See more on https://sonarcloud.io/project/issues?id=hyperpolymath_thejeffparadox&issues=AaA_CS2Ybsq2ePVCtiIA&open=AaA_CS2Ybsq2ePVCtiIA&pullRequest=69
pass "engine/test/runtests.jl present"
else
fail "engine/test/runtests.jl missing"
fi
if [ -d node-alpha ]; then

Check failure on line 48 in tests/validate_structure.sh

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Use '[[' instead of '[' for conditional tests. The '[[' construct is safer and more feature-rich.

See more on https://sonarcloud.io/project/issues?id=hyperpolymath_thejeffparadox&issues=AaA_CS2Ybsq2ePVCtiIB&open=AaA_CS2Ybsq2ePVCtiIB&pullRequest=69
pass "node-alpha/ directory present"
else
fail "node-alpha/ directory missing"
fi
if [ -d node-beta ]; then

Check failure on line 53 in tests/validate_structure.sh

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Use '[[' instead of '[' for conditional tests. The '[[' construct is safer and more feature-rich.

See more on https://sonarcloud.io/project/issues?id=hyperpolymath_thejeffparadox&issues=AaA_CS2Ybsq2ePVCtiIC&open=AaA_CS2Ybsq2ePVCtiIC&pullRequest=69
pass "node-beta/ directory present"
else
fail "node-beta/ directory missing"
fi
if [ -d orchestrator ]; then

Check failure on line 58 in tests/validate_structure.sh

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Use '[[' instead of '[' for conditional tests. The '[[' construct is safer and more feature-rich.

See more on https://sonarcloud.io/project/issues?id=hyperpolymath_thejeffparadox&issues=AaA_CS2Ybsq2ePVCtiID&open=AaA_CS2Ybsq2ePVCtiID&pullRequest=69
pass "orchestrator/ directory present"
else
fail "orchestrator/ directory missing"
fi

# GitHub workflows — require at least 3
WORKFLOW_COUNT=0
Expand Down
Loading