2
0
mirror of https://github.com/openvswitch/ovs synced 2025-08-31 14:25:26 +00:00

tests: Enable Valgrind for userspace system tests.

Signed-off-by: Darrell Ball <dlu998@gmail.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
This commit is contained in:
Darrell Ball
2018-06-11 17:51:42 -07:00
committed by Ben Pfaff
parent 3df52f3d14
commit d3770db18c

View File

@@ -233,6 +233,13 @@ check-kernel-valgrind: all $(valgrind_wrappers) $(check_DATA)
@echo '----------------------------------------------------------------------' @echo '----------------------------------------------------------------------'
@echo 'Valgrind output can be found in tests/system-kmod-testsuite.dir/*/valgrind.*' @echo 'Valgrind output can be found in tests/system-kmod-testsuite.dir/*/valgrind.*'
@echo '----------------------------------------------------------------------' @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) check-helgrind: all $(valgrind_wrappers) $(check_DATA)
-$(SHELL) '$(TESTSUITE)' -C tests CHECK_VALGRIND=true VALGRIND='$(HELGRIND)' AUTOTEST_PATH='tests/valgrind:$(AUTOTEST_PATH)' -d $(TESTSUITEFLAGS) -$(SHELL) '$(TESTSUITE)' -C tests CHECK_VALGRIND=true VALGRIND='$(HELGRIND)' AUTOTEST_PATH='tests/valgrind:$(AUTOTEST_PATH)' -d $(TESTSUITEFLAGS)