From 40cdda81fcfd766f54e410b5e0b9f7812462ed73 Mon Sep 17 00:00:00 2001 From: Felipe Gasper Date: Tue, 15 Mar 2022 23:02:00 -0400 Subject: [PATCH] Make test_all.sh exit nonzero if any tests fail. Issue #160 --- test/test_all.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/test_all.sh b/test/test_all.sh index 749b40e7..1859218e 100755 --- a/test/test_all.sh +++ b/test/test_all.sh @@ -41,12 +41,16 @@ $TPKG -a ../.. fake 32-unbound-regression.tpkg $TPKG -a ../.. fake 999-compile-nossl.tpkg command -v indent || $TPKG -a ../.. fake codingstyle.tpkg +failed=0 for tests in *.tpkg do COMMAND="$TPKG -a ../.. exe $(basename "$tests")" echo "$COMMAND" $COMMAND + if [ $? -ne 0 ]; then ((failed=failed+1)); fi done echo finished the test at "$(date)" in "$(pwd)" $TPKG report cd .. + +exit $failed -- 2.47.3