meson: tests: add lxc 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:
Pavel Hrdina 2020-07-27 11:37:21 +02:00
parent 7b16f6df28
commit 8cd9aca98b
2 changed files with 7 additions and 22 deletions

View File

@ -53,10 +53,6 @@ test_programs += qemuxml2argvtest qemuxml2xmltest \
test_helpers += qemucapsprobe
endif WITH_QEMU
if WITH_LXC
test_programs += lxcxml2xmltest lxcconf2xmltest
endif WITH_LXC
if WITH_OPENVZ
test_programs += openvzutilstest
endif WITH_OPENVZ
@ -302,24 +298,6 @@ qemuvhostusertest_SOURCES = \
qemuvhostusertest_LDADD = $(qemu_LDADDS)
endif WITH_QEMU
if WITH_LXC
lxc_LDADDS = \
../src/libvirt_driver_lxc_impl.la \
$(LDADDS) \
$(NULL)
lxcxml2xmltest_SOURCES = \
lxcxml2xmltest.c testutilslxc.c testutilslxc.h \
testutils.c testutils.h
lxcxml2xmltest_LDADD = $(lxc_LDADDS)
lxcconf2xmltest_SOURCES = \
lxcconf2xmltest.c testutilslxc.c testutilslxc.h \
testutils.c testutils.h
lxcconf2xmltest_LDADD = $(lxc_LDADDS)
endif WITH_LXC
if WITH_OPENVZ
openvzutilstest_SOURCES = \
openvzutilstest.c \

View File

@ -389,6 +389,13 @@ if conf.has('WITH_LIBXL')
]
endif
if conf.has('WITH_LXC')
tests += [
{ 'name': 'lxcconf2xmltest', 'link_with': [ lxc_driver_impl_lib ], 'link_whole': [ test_utils_lxc_lib ] },
{ 'name': 'lxcxml2xmltest', 'link_with': [ lxc_driver_impl_lib ], 'link_whole': [ test_utils_lxc_lib ] },
]
endif
foreach data : tests
test_sources = '@0@.c'.format(data['name'])
test_bin = executable(