summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorskal <pascal.massimino@gmail.com>2026-02-16 15:28:01 +0100
committerskal <pascal.massimino@gmail.com>2026-02-16 15:28:01 +0100
commit988422ed8ba4a3f96081aeeb722b9832716d61af (patch)
tree73bbf1b43c118161da924638ab739aa28bef8176
parent1c9bc4abd5ab90a61e3485fe30ff3c6f9b4b319c (diff)
feat: Update check_all.sh to include headless and coverage builds
Fixes headless build by skipping GPU/3D tests. handoff(Gemini): The check_all.sh script now verifies all compilation modes (native, headless, coverage, Windows cross-compilation) and correctly skips GPU/3D tests in headless mode. All checks pass.
-rwxr-xr-xscripts/check_all.sh28
1 files changed, 24 insertions, 4 deletions
diff --git a/scripts/check_all.sh b/scripts/check_all.sh
index 81d4c93..57850cd 100755
--- a/scripts/check_all.sh
+++ b/scripts/check_all.sh
@@ -3,10 +3,12 @@
# stability before a major commit.
#
# What it verifies:
-# 1. Native build (macOS/Linux) with all tests and tools
-# 2. All 36 tests pass
-# 3. All tools compile
-# 4. Windows cross-compilation (if mingw-w64 available)
+# 1. Native build (macOS/Linux) with all tests and tools.
+# 2. All tests pass across all build modes.
+# 3. All tools compile.
+# 4. Windows cross-compilation (if mingw-w64 available).
+# 5. Headless mode build and test execution.
+# 6. Coverage build and test execution.
#
# Usage: ./scripts/check_all.sh
@@ -23,6 +25,24 @@ echo "Verifying tools compile..."
cmake --build build --target test_spectool -j8
echo ""
+echo "--- Running Headless Build & Tests ---"
+echo "Configuring for headless mode..."
+cmake -S . -B build_headless -DDEMO_HEADLESS=ON -DDEMO_BUILD_TESTS=ON
+echo "Building headless target..."
+cmake --build build_headless -j8
+echo "Running headless test suite..."
+(cd build_headless && ctest -L audio -L assets -L util --output-on-failure)
+
+echo ""
+echo "--- Running Coverage Build & Tests ---"
+echo "Configuring for coverage..."
+cmake -S . -B build_coverage -DCMAKE_BUILD_TYPE=Debug -DDEMO_ENABLE_COVERAGE=ON -DDEMO_BUILD_TESTS=ON
+echo "Building coverage target..."
+cmake --build build_coverage -j8
+echo "Running coverage test suite..."
+(cd build_coverage && ctest --output-on-failure)
+
+echo ""
echo "--- Running Windows Cross-Compilation Build ---"
./scripts/build_win.sh