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_VMX
-test_programs += vmx2xmltest xml2vmxtest
-endif WITH_VMX
-
if WITH_YAJL
test_programs += virjsontest
endif WITH_YAJL
libqemutestdriver.la $(LDADDS)
endif WITH_QEMU
-if WITH_VMX
-vmx2xmltest_SOURCES = \
- vmx2xmltest.c \
- testutils.c testutils.h
-vmx2xmltest_LDADD = $(LDADDS)
-
-xml2vmxtest_SOURCES = \
- xml2vmxtest.c \
- testutils.c testutils.h
-xml2vmxtest_LDADD = $(LDADDS)
-endif WITH_VMX
-
if WITH_NSS
## Intentionaly not linking with anything else.
## See the test source for more detailed explanation.
]
endif
+if conf.has('WITH_VMX')
+ tests += [
+ { 'name': 'vmx2xmltest' },
+ { 'name': 'xml2vmxtest' },
+ ]
+endif
+
foreach data : tests
test_sources = '@0@.c'.format(data['name'])
test_bin = executable(