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.nord...@canonical.com>
---
 tests/automake.mk | 13 +++++--------
 1 file changed, 5 insertions(+), 8 deletions(-)

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 = \
-- 
2.32.0

_______________________________________________
dev mailing list
d...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Reply via email to