Whamcloud - gitweb
po: update vi.po (from translationproject.org)
[tools/e2fsprogs.git] / tests / test_script.in
index bd3cc3e..b7ac86e 100644 (file)
@@ -10,6 +10,11 @@ case "$1" in
     --valgrind)
        export USE_VALGRIND="valgrind -q --sim-hints=lax-ioctls"
        shift;
+       ;;
+    --valgrind-leakcheck)
+       export USE_VALGRIND="valgrind --sim-hints=lax-ioctls --leak-check=full --show-reachable=yes --log-file=/tmp/valgrind-%p.log"
+       shift;
+       ;;
 esac
 
 if test "$1"x = x ; then
@@ -34,6 +39,8 @@ fi
 
 . $TEST_CONFIG
 
+TMPFILE=$(mktemp)
+
 for test_dir in $TESTS
 do
        test_name=`echo $test_dir | sed -e 's;.*/;;'`
@@ -71,4 +78,12 @@ num_failed=`ls *.failed 2>/dev/null | wc -l`
 
 echo "$num_ok tests succeeded  $num_failed tests failed"
 
-test "$num_failed" -eq 0 || exit 1
+test "$num_failed" -eq 0 && exit 0
+
+echo -n "Tests failed: "
+for fname in $(ls *.failed); do
+       echo -n "${fname%%.failed} "
+done
+echo ""
+
+exit 1