]> git.ipfire.org Git - thirdparty/ldns.git/commitdiff
Make test_all.sh exit nonzero if any tests fail. 161/head
authorFelipe Gasper <felipe@felipegasper.com>
Wed, 16 Mar 2022 03:02:00 +0000 (23:02 -0400)
committerFelipe Gasper <felipe@felipegasper.com>
Wed, 16 Mar 2022 03:02:00 +0000 (23:02 -0400)
Issue #160

test/test_all.sh

index 749b40e727af0ab56e708b410bef40485c1d4fd6..1859218e231ab6a59ffd246b8ac81a689f594c26 100755 (executable)
@@ -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