]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
test: Report all test suite loading failures before failing master
authorJoel Rosdahl <joel@rosdahl.net>
Wed, 29 Jul 2026 08:38:30 +0000 (10:38 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Wed, 29 Jul 2026 17:53:30 +0000 (19:53 +0200)
test/run

index 3fe93da370b777f4d69b86f9447b4d8a8e208c00..3da5f1ef77728b25c36ce451742920c5c351601a 100755 (executable)
--- a/test/run
+++ b/test/run
@@ -697,14 +697,18 @@ fi
 export TEST_BASE_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
 
 all_suites="$(sed -En 's/^ *addtest\((.*)\)$/\1/p' $(dirname $0)/CMakeLists.txt)"
+load_ok=true
 for suite in $all_suites; do
     suite_path="${TEST_BASE_DIR}/suites/${suite}.bash"
     . "${suite_path}"
     if [ $? -ne 0 ]; then
-        echo "Error: Failed to load ${suite_path}"
-        exit 1
+        echo "Error: Failed to load ${suite_path}" >&2
+        load_ok=false
     fi
 done
+if ! $load_ok; then
+    exit 1
+fi
 
 # ---------------------------------------