Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Neal Gompa <ngompa13@gmail.com>
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
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 \
]
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(