endif WITH_ATTR
endif WITH_SECDRIVER_SELINUX
-if WITH_LIBXL
-test_programs += xlconfigtest \
- xmconfigtest libxlxml2domconfigtest
-endif WITH_LIBXL
-
if WITH_QEMU
test_programs += qemuxml2argvtest qemuxml2xmltest \
qemudomaincheckpointxml2xmltest qemudomainsnapshotxml2xmltest \
valgrind:
$(MAKE) check VG="$(LIBTOOL) --mode=execute $(VALGRIND)"
-if WITH_LIBXL
-libxl_LDADDS = \
- ../src/libvirt_driver_libxl_impl.la \
- $(LDADDS) \
- $(NULL)
-
-xlconfigtest_SOURCES = \
- xlconfigtest.c testutilsxen.c testutilsxen.h \
- testutils.c testutils.h
-xlconfigtest_LDADD = libxltestdriver.la \
- $(libxl_LDADDS)
-
-xmconfigtest_SOURCES = \
- xmconfigtest.c testutilsxen.c testutilsxen.h \
- testutils.c testutils.h
-xmconfigtest_LDADD = libxltestdriver.la \
- $(libxl_LDADDS)
-
-libxlxml2domconfigtest_SOURCES = \
- libxlxml2domconfigtest.c testutilsxen.c testutilsxen.h \
- testutils.c testutils.h
-libxlxml2domconfigtest_LDADD = libxltestdriver.la \
- $(libxl_LDADDS) $(LIBXML_LIBS)
-endif WITH_LIBXL
-
if WITH_QEMU
qemu_LDADDS = ../src/libvirt_driver_qemu_impl.la
]
endif
+if conf.has('WITH_LIBXL')
+ tests += [
+ { 'name': 'libxlxml2domconfigtest', 'link_with': [ test_xen_driver_lib ], 'link_whole': [ test_utils_xen_lib ], 'deps': [ libxl_dep ] },
+ { 'name': 'xlconfigtest', 'link_with': [ test_xen_driver_lib ], 'link_whole': [ test_utils_xen_lib ] },
+ { 'name': 'xmconfigtest', 'link_with': [ test_xen_driver_lib ], 'link_whole': [ test_utils_xen_lib ] },
+ ]
+endif
+
foreach data : tests
test_sources = '@0@.c'.format(data['name'])
test_bin = executable(