From 530b15831562207837a0938ab8618f976c9c59ad Mon Sep 17 00:00:00 2001 From: Felipe Zimmerle Date: Tue, 15 Sep 2015 16:48:26 -0300 Subject: [PATCH] Adds scripts to call the tests using valgrind --- examples/simple_example_using_c/test-valgrind.sh | 4 ++++ test/regression-tests-valgrind.sh | 4 ++++ test/unit-tests-valgrind.sh | 4 ++++ 3 files changed, 12 insertions(+) create mode 100755 examples/simple_example_using_c/test-valgrind.sh create mode 100755 test/regression-tests-valgrind.sh create mode 100755 test/unit-tests-valgrind.sh diff --git a/examples/simple_example_using_c/test-valgrind.sh b/examples/simple_example_using_c/test-valgrind.sh new file mode 100755 index 00000000..cf740daf --- /dev/null +++ b/examples/simple_example_using_c/test-valgrind.sh @@ -0,0 +1,4 @@ +#!/usr/bin/env bash + +valgrind --tool=massif +valgrind --show-leak-kinds=all --leak-check=full ./test diff --git a/test/regression-tests-valgrind.sh b/test/regression-tests-valgrind.sh new file mode 100755 index 00000000..90ef5532 --- /dev/null +++ b/test/regression-tests-valgrind.sh @@ -0,0 +1,4 @@ +#!/usr/bin/env bash + +valgrind --tool=massif ./regression-tests $* +valgrind --leak-check=full --suppressions=./valgrind_suppressions.txt ./regression-tests $* diff --git a/test/unit-tests-valgrind.sh b/test/unit-tests-valgrind.sh new file mode 100755 index 00000000..f50e0eef --- /dev/null +++ b/test/unit-tests-valgrind.sh @@ -0,0 +1,4 @@ +#!/usr/bin/env bash + +valgrind --tool=massif ./unit-tests $* +valgrind --leak-check=full --suppressions=./valgrind_suppressions.txt ./unit-tests $*