Whamcloud - gitweb
tune2fs: Add support for turning on quota feature
[tools/e2fsprogs.git] / tests / test_script.in
index be0e912..cec09df 100644 (file)
@@ -8,8 +8,13 @@ export LC_ALL
 
 case "$1" in 
     --valgrind)
-       export USE_VALGRIND="valgrind -q --weird-hacks=lax-ioctls"
+       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;.*/;;'`