blob: 113d3f051d6f8b58ef16dda939e38a5a8c4c9576 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
#!/bin/bash
# This script builds and tests all supported platform targets to ensure
# stability before a major commit.
#
# What it verifies:
# 1. Native build (macOS/Linux) with all tests and tools
# 2. All 26 tests pass
# 3. All tools compile (spectool, specview, specplay)
# 4. Windows cross-compilation (if mingw-w64 available)
#
# Usage: ./scripts/check_all.sh
set -e
echo "--- Running Native Build & Tests ---"
echo "Configuring with all options enabled (tests + tools)..."
cmake -S . -B build -DDEMO_BUILD_TESTS=ON -DDEMO_BUILD_TOOLS=ON
echo "Building all targets (demo, tests, and tools)..."
cmake --build build -j8
echo "Running test suite..."
(cd build && ctest --output-on-failure)
echo "Verifying tools compile..."
cmake --build build --target spectool specview specplay -j8
echo ""
echo "--- Running Windows Cross-Compilation Build ---"
./scripts/build_win.sh
echo ""
echo "All checks passed successfully."
|