Skip to content

Commit

Permalink
meson: tests: add vbox 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 4049917 commit 9b7b632
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 12 deletions.
12 changes: 0 additions & 12 deletions tests/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,6 @@ if WITH_QEMU
test_helpers += qemucapsprobe
endif WITH_QEMU

if WITH_VBOX
test_programs += vboxsnapshotxmltest
endif WITH_VBOX

if WITH_VMX
test_programs += vmx2xmltest xml2vmxtest
endif WITH_VMX
Expand Down Expand Up @@ -101,14 +97,6 @@ qemucapsprobe_LDADD = \
libqemutestdriver.la $(LDADDS)
endif WITH_QEMU

if WITH_VBOX
vboxsnapshotxmltest_SOURCES = \
vboxsnapshotxmltest.c \
testutils.c testutils.h
vbox_LDADDS = ../src/libvirt_driver_vbox_impl.la
vboxsnapshotxmltest_LDADD = $(LDADDS) $(vbox_LDADDS)
endif WITH_VBOX

if WITH_VMX
vmx2xmltest_SOURCES = \
vmx2xmltest.c \
Expand Down
6 changes: 6 additions & 0 deletions tests/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -519,6 +519,12 @@ if conf.has('WITH_STORAGE_SHEEPDOG')
]
endif

if conf.has('WITH_VBOX')
tests += [
{ 'name': 'vboxsnapshotxmltest', 'link_with': [ vbox_driver_impl ] },
]
endif

foreach data : tests
test_sources = '@[email protected]'.format(data['name'])
test_bin = executable(
Expand Down

0 comments on commit 9b7b632

Please sign in to comment.