[libvirt PATCH 6/7] tests: link the libxl tests with libxltestdriver.la

Ján Tomko jtomko at redhat.com
Sat Feb 22 14:25:10 UTC 2020


This lets us mock functions from the libxl driver.

Signed-off-by: Ján Tomko <jtomko at redhat.com>
---
 tests/Makefile.am | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/tests/Makefile.am b/tests/Makefile.am
index ed5255b62d..761c989e86 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -505,17 +505,20 @@ libxltestdriver_la_LIBADD = $(libxl_LDADDS)
 xlconfigtest_SOURCES = \
 	xlconfigtest.c testutilsxen.c testutilsxen.h \
 	testutils.c testutils.h
-xlconfigtest_LDADD =$(libxl_LDADDS)
+xlconfigtest_LDADD = libxltestdriver.la \
+	$(libxl_LDADDS)
 
 xmconfigtest_SOURCES = \
 	xmconfigtest.c testutilsxen.c testutilsxen.h \
 	testutils.c testutils.h
-xmconfigtest_LDADD = $(libxl_LDADDS)
+xmconfigtest_LDADD = libxltestdriver.la \
+	$(libxl_LDADDS)
 
 libxlxml2domconfigtest_SOURCES = \
 	libxlxml2domconfigtest.c testutilsxen.c testutilsxen.h \
 	testutils.c testutils.h
-libxlxml2domconfigtest_LDADD = $(libxl_LDADDS) $(LIBXML_LIBS)
+libxlxml2domconfigtest_LDADD = libxltestdriver.la \
+	$(libxl_LDADDS) $(LIBXML_LIBS)
 
 libxlmock_la_SOURCES = \
 	libxlmock.c
-- 
2.24.1




More information about the libvir-list mailing list