Add drd/helgrind to the tests runner script.
authorCarl Hetherington <cth@carlh.net>
Fri, 17 Apr 2020 20:37:54 +0000 (22:37 +0200)
committerCarl Hetherington <cth@carlh.net>
Fri, 17 Apr 2020 20:37:54 +0000 (22:37 +0200)
run/tests

index 3f465a4334b6c27be2015c90d36e0243769457e6..13aa1f6e6ffdde09bfbc407a06b90262dd21ab7d 100755 (executable)
--- a/run/tests
+++ b/run/tests
@@ -20,6 +20,12 @@ elif [ "$1" == "--callgrind" ]; then
 elif [ "$1" == "--quiet" ]; then
     shift;
     build/test/unit-tests --catch_system_errors=no $*
+elif [ "$1" == "--drd" ]; then
+    shift;
+    valgrind --tool="drd" build/test/unit-tests $*
+elif [ "$1" == "--helgrind" ]; then
+    shift;
+    valgrind --tool="helgrind" build/test/unit-tests $*
 else
     ulimit -c unlimited
     build/test/unit-tests --catch_system_errors=no --log_level=test_suite $*