mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 05:35:25 +00:00
meson: tests: add libxl specific tests
Signed-off-by: Pavel Hrdina <phrdina@redhat.com> Reviewed-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Neal Gompa <ngompa13@gmail.com>
This commit is contained in:
parent
fc55e48d5b
commit
7b16f6df28
@ -37,11 +37,6 @@ endif WITH_QEMU
|
||||
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 \
|
||||
@ -174,31 +169,6 @@ VALGRIND = valgrind --quiet --leak-check=full --trace-children=yes \
|
||||
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
|
||||
|
@ -381,6 +381,14 @@ if conf.has('WITH_LIBVIRTD')
|
||||
]
|
||||
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(
|
||||
|
Loading…
Reference in New Issue
Block a user