Whamcloud - gitweb
tests: Add --valgrind-leakcheck option to the test_script program
authorTheodore Ts'o <tytso@mit.edu>
Mon, 15 Jun 2009 05:33:26 +0000 (01:33 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 15 Jun 2009 05:33:26 +0000 (01:33 -0400)
Add an option which runs valgrind with the appropriate options for
finding memory leaks.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
tests/test_script.in

index bd3cc3e..aac28fb 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