X-Git-Url: https://git.saurik.com/apt.git/blobdiff_plain/39cc82288036a005226564fadd05ef19ef0037bb..d44b706c2d5964daaaf55e6eb97845827958f6e3:/test/integration/run-tests diff --git a/test/integration/run-tests b/test/integration/run-tests index 5644f0a05..edac07dbf 100755 --- a/test/integration/run-tests +++ b/test/integration/run-tests @@ -1,11 +1,12 @@ #!/bin/sh set -e +FAIL=0 DIR=$(readlink -f $(dirname $0)) if [ "$1" = "-q" ]; then export MSGLEVEL=2 elif [ "$1" = "-v" ]; then - export MSGLEVEL=5 + export MSGLEVEL=4 fi for testcase in $(run-parts --list $DIR | grep '/test-'); do if [ "$1" = "-q" ]; then @@ -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 - ${testcase} + if ! ${testcase}; then + FAIL=$((FAIL+1)) + echo "$(basename $testcase) ... FAIL" + fi if [ "$1" = "-q" ]; then echo fi done + +echo "failures: $FAIL" +exit $FAIL