]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
meson: tests: add vbox specific tests
authorPavel Hrdina <phrdina@redhat.com>
Mon, 27 Jul 2020 09:39:29 +0000 (11:39 +0200)
committerPavel Hrdina <phrdina@redhat.com>
Mon, 3 Aug 2020 07:27:06 +0000 (09:27 +0200)
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Neal Gompa <ngompa13@gmail.com>
tests/Makefile.am
tests/meson.build

index e2965b0697346e8c8779f15113c5166ce1568023..bf2c2741edd80aac36ab9ea7501af9973b585561 100644 (file)
@@ -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
@@ -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 \
index b41ddcab10f9f90ab203424b87c586eb1e7e653b..4eef28b20ab740e548aa4f187c66e345e398281e 100644 (file)
@@ -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 = '@0@.c'.format(data['name'])
   test_bin = executable(