run.sh
#!/bin/bash ## Run every tests/test-*.sh script. Each prints PASS/FAIL lines and exits ## nonzero on failure; this driver reports per-script status and fails if any did. set -uo pipefail cd "$(dirname "$0")" || exit fail=0 for t in test-*.sh; do echo "=== $t ===" if "./$t"; then echo "ok $t" else echo "FAIL $t (exit $?)" fail=1 fi done echo if [[ $fail -eq 0 ]]; then echo "all test scripts passed" else echo "TEST FAILURES" fi exit "$fail"
tests/run.sh · 462 B · af11966ce4