Add possibility to trigger the tests with Valgrind
authorWilfried Goesgens <dothebart@citadel.org>
Sun, 12 Dec 2010 14:06:09 +0000 (15:06 +0100)
committerWilfried Goesgens <dothebart@citadel.org>
Sun, 12 Dec 2010 14:10:29 +0000 (15:10 +0100)
libcitadel/tests/run_tests.sh

index 73a561d66b3a7718f92847fe037eaaaccbd5e7ab..2dd29b5d7ea77f23290d1fadd176e5cc0ca1481a 100755 (executable)
@@ -1,7 +1,13 @@
 #!/bin/bash
 
-RUN_TEST=
-
+case $1 in
+    valgrind)
+       RUN_TEST='valgrind --log-file=/tmp/run_tests_valgrind.%p --show-reachable=yes --leak-check=full'
+       ;;
+    default)
+       RUN_TEST=
+       ;;
+esac
 #./stringbuf_IO_test -p 6666 -i 0.0.0.0 -s 2 -l 50