summaryrefslogtreecommitdiff
path: root/tests/automake.mk
diff options
context:
space:
mode:
authorDarrell Ball <dlu998@gmail.com>2018-06-11 17:51:42 -0700
committerBen Pfaff <blp@ovn.org>2018-06-14 13:31:30 -0700
commitd3770db18c84b5edb7becd24c3853985fc96d75a (patch)
tree1fa13e9f66b3268088aa83323364354205518c2b /tests/automake.mk
parent3df52f3d14e8cab704a918dd92e076804c0815e1 (diff)
downloadopenvswitch-d3770db18c84b5edb7becd24c3853985fc96d75a.tar.gz
tests: Enable Valgrind for userspace system tests.
Signed-off-by: Darrell Ball <dlu998@gmail.com> Signed-off-by: Ben Pfaff <blp@ovn.org>
Diffstat (limited to 'tests/automake.mk')
-rw-r--r--tests/automake.mk7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/automake.mk b/tests/automake.mk
index c420b29f3..8224e5a4a 100644
--- a/tests/automake.mk
+++ b/tests/automake.mk
@@ -233,6 +233,13 @@ check-kernel-valgrind: all $(valgrind_wrappers) $(check_DATA)
@echo '----------------------------------------------------------------------'
@echo 'Valgrind output can be found in tests/system-kmod-testsuite.dir/*/valgrind.*'
@echo '----------------------------------------------------------------------'
+check-userspace-valgrind: all $(valgrind_wrappers) $(check_DATA)
+ set $(SHELL) '$(SYSTEM_USERSPACE_TESTSUITE)' -C tests VALGRIND='$(VALGRIND)' AUTOTEST_PATH='tests/valgrind:$(AUTOTEST_PATH)' -d $(TESTSUITEFLAGS) -j1; \
+ "$$@" || (test X'$(RECHECK)' = Xyes && "$$@" --recheck)
+ @echo
+ @echo '----------------------------------------------------------------------'
+ @echo 'Valgrind output can be found in tests/system-userspace-testsuite.dir/*/valgrind.*'
+ @echo '----------------------------------------------------------------------'
check-helgrind: all $(valgrind_wrappers) $(check_DATA)
-$(SHELL) '$(TESTSUITE)' -C tests CHECK_VALGRIND=true VALGRIND='$(HELGRIND)' AUTOTEST_PATH='tests/valgrind:$(AUTOTEST_PATH)' -d $(TESTSUITEFLAGS)