tests: Add --valgrind-leakcheck option to the test_script program

Add an option which runs valgrind with the appropriate options for
finding memory leaks.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
bitmap-optimize
Theodore Ts'o 2009-06-15 01:33:26 -04:00
parent 3b5126de44
commit 58d29ed48a
1 changed files with 5 additions and 0 deletions

View 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