[ovs-dev] [PATCH ovn v2] tests: Fix check-valgrind and check-lcov.
Han Zhou
hzhou at ovn.org
Tue Oct 22 01:38:19 UTC 2019
After split from OVS, make check-valgrind and check-lcov are not
working any more, because the $ovs_srcdir are missing for these tests.
Instead of add ovs_srcdir=$(ovs_srcdir) for each target, this patch
export ovs_srcdir once for all.
Signed-off-by: Han Zhou <hzhou at ovn.org>
---
tests/automake.mk | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/tests/automake.mk b/tests/automake.mk
index 013e592..47e6a5d 100644
--- a/tests/automake.mk
+++ b/tests/automake.mk
@@ -54,8 +54,10 @@ DISTCLEANFILES += tests/atconfig tests/atlocal
AUTOTEST_PATH = $(ovs_builddir)/utilities:$(ovs_builddir)/vswitchd:$(ovs_builddir)/ovsdb:$(ovs_builddir)/vtep:tests:$(PTHREAD_WIN32_DIR_DLL):$(SSL_DIR):controller-vtep:northd:utilities:controller
+export ovs_srcdir
+
check-local:
- set $(SHELL) '$(TESTSUITE)' -C tests AUTOTEST_PATH=$(AUTOTEST_PATH) ovs_srcdir=$(ovs_srcdir); \
+ set $(SHELL) '$(TESTSUITE)' -C tests AUTOTEST_PATH=$(AUTOTEST_PATH); \
"$$@" $(TESTSUITEFLAGS) || (test X'$(RECHECK)' = Xyes && "$$@" --recheck)
# Python Coverage support.
--
2.1.0
More information about the dev
mailing list