mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-08 09:57:26 +03:00
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:
parent
7b16f6df28
commit
8cd9aca98b
@ -53,10 +53,6 @@ test_programs += qemuxml2argvtest qemuxml2xmltest \
|
|||||||
test_helpers += qemucapsprobe
|
test_helpers += qemucapsprobe
|
||||||
endif WITH_QEMU
|
endif WITH_QEMU
|
||||||
|
|
||||||
if WITH_LXC
|
|
||||||
test_programs += lxcxml2xmltest lxcconf2xmltest
|
|
||||||
endif WITH_LXC
|
|
||||||
|
|
||||||
if WITH_OPENVZ
|
if WITH_OPENVZ
|
||||||
test_programs += openvzutilstest
|
test_programs += openvzutilstest
|
||||||
endif WITH_OPENVZ
|
endif WITH_OPENVZ
|
||||||
@ -302,24 +298,6 @@ qemuvhostusertest_SOURCES = \
|
|||||||
qemuvhostusertest_LDADD = $(qemu_LDADDS)
|
qemuvhostusertest_LDADD = $(qemu_LDADDS)
|
||||||
endif WITH_QEMU
|
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
|
if WITH_OPENVZ
|
||||||
openvzutilstest_SOURCES = \
|
openvzutilstest_SOURCES = \
|
||||||
openvzutilstest.c \
|
openvzutilstest.c \
|
||||||
|
@ -389,6 +389,13 @@ if conf.has('WITH_LIBXL')
|
|||||||
]
|
]
|
||||||
endif
|
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
|
foreach data : tests
|
||||||
test_sources = '@0@.c'.format(data['name'])
|
test_sources = '@0@.c'.format(data['name'])
|
||||||
test_bin = executable(
|
test_bin = executable(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user