]> git.saurik.com Git - apt.git/blobdiff - test/integration/run-tests
Merge remote-tracking branch 'mvo/debian/sid' into debian/sid
[apt.git] / test / integration / run-tests
index 18474b20f6a3dd67c0163c6bdcaf3b0b991a036a..7316016e2c3dac61eb0f4c56f951157c9521f94f 100755 (executable)
@@ -2,6 +2,7 @@
 set -e
 
 FAIL=0
 set -e
 
 FAIL=0
+FAILED_TESTS=""
 DIR=$(readlink -f $(dirname $0))
 if [ "$1" = "-q" ]; then
        export MSGLEVEL=2
 DIR=$(readlink -f $(dirname $0))
 if [ "$1" = "-q" ]; then
        export MSGLEVEL=2
@@ -29,6 +30,7 @@ for testcase in $(run-parts --list $DIR | grep '/test-'); do
        fi
        if ! ${testcase}; then
                  FAIL=$((FAIL+1))
        fi
        if ! ${testcase}; then
                  FAIL=$((FAIL+1))
+                 FAILED_TESTS="$FAILED_TESTS $(basename $testcase)"
                  echo "$(basename $testcase) ... FAIL"
         fi
        if [ "$MSGLEVEL" -le 2 ]; then
                  echo "$(basename $testcase) ... FAIL"
         fi
        if [ "$MSGLEVEL" -le 2 ]; then
@@ -37,5 +39,8 @@ for testcase in $(run-parts --list $DIR | grep '/test-'); do
 done
 
 echo "failures: $FAIL"
 done
 
 echo "failures: $FAIL"
+if [ -n "$FAILED_TESTS" ]; then 
+    echo "Failed tests: $FAILED_TESTS";
+fi
 # ensure we don't overflow
 exit $((FAIL <= 255 ? FAIL : 255))
 # ensure we don't overflow
 exit $((FAIL <= 255 ? FAIL : 255))