summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Lambert <eric_lambert@xyratex.com>2014-06-12 16:08:30 -0700
committerEric Lambert <eric_lambert@xyratex.com>2014-06-12 16:08:30 -0700
commit71f5715115dfe7f42aa689bad78ac5c70ad61653 (patch)
tree2105870f5441389853ff9c966a0d0361c2f75c17
parent2ce9d0cc005995e90fd62d802f6f6744edfee43d (diff)
downloadliberasurecode-71f5715115dfe7f42aa689bad78ac5c70ad61653.tar.gz
Created make target to run tests under valgrind
-rw-r--r--Makefile.in6
1 files changed, 5 insertions, 1 deletions
diff --git a/Makefile.in b/Makefile.in
index 9f0d538..02061f4 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -15,7 +15,7 @@
@SET_MAKE@
-
+VALGRIND_EXEC_COMMAND = $(LIBTOOL_COMMAND) valgrind --tool=memcheck --error-exitcode=1 --leak-check=yes --track-fds=yes --malloc-fill=A5 --free-fill=DE --fullpath-after=.
VPATH = @srcdir@
am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
am__make_running_with_option = \
@@ -931,6 +931,10 @@ test: alg_sig_test test_xor_hd_code
./alg_sig_test
./test_xor_hd_code
+valgrind-test: alg_sig_test test_xor_hd_code
+ $(VALGRIND_EXEC_COMMAND) ./alg_sig_test
+ $(VALGRIND_EXEC_COMMAND) ./test_xor_hd_code
+
# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
.NOEXPORT: