diff mbox series

[ovs-dev,v7,09/12] tests: Use built objects for unit test deps.

Message ID 20211019102205.3837601-9-frode.nordahl@canonical.com
State Accepted
Headers show
Series Introduce infrastructure for plug providers | expand

Checks

Context Check Description
ovsrobot/apply-robot success apply and check: success
ovsrobot/github-robot-_Build_and_Test success github build: passed
ovsrobot/github-robot-_ovn-kubernetes fail github build: failed

Commit Message

Frode Nordahl Oct. 19, 2021, 10:22 a.m. UTC
Currently the tests/automake.mk adds source files from the project
as needed and rebuilds these for the unit test programs.

Use the already built objects instead.

Signed-off-by: Frode Nordahl <frode.nordahl@canonical.com>
---
 tests/automake.mk | 13 +++++--------
 1 file changed, 5 insertions(+), 8 deletions(-)
diff mbox series

Patch

diff --git a/tests/automake.mk b/tests/automake.mk
index 5b890d644..c4a7c0a5b 100644
--- a/tests/automake.mk
+++ b/tests/automake.mk
@@ -243,17 +243,14 @@  tests_ovstest_SOURCES = \
 	tests/test-ovn.c \
 	controller/test-lflow-cache.c \
 	controller/test-ofctrl-seqno.c \
-	controller/lflow-cache.c \
-	controller/lflow-cache.h \
-	controller/ofctrl-seqno.c \
-	controller/ofctrl-seqno.h \
 	lib/test-ovn-features.c \
-	northd/test-ipam.c \
-	northd/ipam.c \
-	northd/ipam.h
+	northd/test-ipam.c
 
 tests_ovstest_LDADD = $(OVS_LIBDIR)/daemon.lo \
-    $(OVS_LIBDIR)/libopenvswitch.la lib/libovn.la
+    $(OVS_LIBDIR)/libopenvswitch.la lib/libovn.la \
+	controller/lflow-cache.$(OBJEXT) \
+	controller/ofctrl-seqno.$(OBJEXT) \
+	northd/ipam.$(OBJEXT)
 
 # Python tests.
 CHECK_PYFILES = \