]> git.saurik.com Git - apt.git/blobdiff - test/integration/run-tests
* test/integration/test-hashsum-verification:
[apt.git] / test / integration / run-tests
index 7314e6b6113a120d8d2b820539c18cab4838d875..edac07dbfd0cd289bd441fb92ab1c7d0b58d0914 100755 (executable)
@@ -1,6 +1,7 @@
 #!/bin/sh
 set -e
 
 #!/bin/sh
 set -e
 
+FAIL=0
 DIR=$(readlink -f $(dirname $0))
 if [ "$1" = "-q" ]; then
        export MSGLEVEL=2
 DIR=$(readlink -f $(dirname $0))
 if [ "$1" = "-q" ]; then
        export MSGLEVEL=2
@@ -13,8 +14,14 @@ for testcase in $(run-parts --list $DIR | grep '/test-'); do
        else
                echo "\033[1;32mRun Testcase \033[1;35m$(basename ${testcase})\033[0m"
        fi
        else
                echo "\033[1;32mRun Testcase \033[1;35m$(basename ${testcase})\033[0m"
        fi
-       ${testcase}
+       if ! ${testcase}; then
+                 FAIL=$((FAIL+1))
+                 echo "$(basename $testcase) ... FAIL"
+        fi
        if [ "$1" = "-q" ]; then
                echo
        fi
 done
        if [ "$1" = "-q" ]; then
                echo
        fi
 done
+
+echo "failures: $FAIL"
+exit $FAIL