From: Felipe Gasper Date: Wed, 16 Mar 2022 03:02:00 +0000 (-0400) Subject: Make test_all.sh exit nonzero if any tests fail. X-Git-Tag: 1.8.2-rc.1~24^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F161%2Fhead;p=thirdparty%2Fldns.git Make test_all.sh exit nonzero if any tests fail. Issue #160 --- 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