Skip to content

Commit

Permalink
meson: tests: add lxc specific tests
Browse files Browse the repository at this point in the history
Signed-off-by: Pavel Hrdina <[email protected]>
Reviewed-by: Peter Krempa <[email protected]>
Reviewed-by: Neal Gompa <[email protected]>
  • Loading branch information
phrdina committed Aug 3, 2020
1 parent 7b16f6d commit 8cd9aca
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 22 deletions.
22 changes: 0 additions & 22 deletions tests/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 \
Expand Down
7 changes: 7 additions & 0 deletions tests/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -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 = '@[email protected]'.format(data['name'])
test_bin = executable(
Expand Down

0 comments on commit 8cd9aca

Please sign in to comment.