test_programs += vmwarevertest
endif WITH_VMWARE
-if WITH_BHYVE
-test_programs += bhyvexml2argvtest bhyvexml2xmltest bhyveargv2xmltest
-endif WITH_BHYVE
-
if WITH_YAJL
test_programs += virjsontest
endif WITH_YAJL
vmwarevertest_LDADD = $(LDADDS)
endif WITH_VMWARE
-if WITH_BHYVE
-bhyve_LDADDS = \
- ../src/libvirt_driver_bhyve_impl.la \
- $(LDADDS) \
- $(NULL)
-bhyvexml2argvtest_SOURCES = \
- bhyvexml2argvtest.c \
- testutils.c testutils.h
-bhyvexml2argvtest_LDADD = $(bhyve_LDADDS)
-
-bhyvexml2xmltest_SOURCES = \
- bhyvexml2xmltest.c \
- testutils.c testutils.h
-bhyvexml2xmltest_LDADD = $(bhyve_LDADDS)
-
-bhyveargv2xmltest_SOURCES = \
- bhyveargv2xmltest.c \
- testutils.c testutils.h
-bhyveargv2xmltest_LDADD = $(bhyve_LDADDS)
-endif WITH_BHYVE
-
if WITH_NETWORK
networkxml2xmltest_SOURCES = \
networkxml2xmltest.c \
]
endif
+if conf.has('WITH_BHYVE')
+ tests += [
+ { 'name': 'bhyveargv2xmltest', 'link_with': [ bhyve_driver_impl ] },
+ { 'name': 'bhyvexml2argvtest', 'link_with': [ bhyve_driver_impl ] },
+ { 'name': 'bhyvexml2xmltest', 'link_with': [ bhyve_driver_impl ] },
+ ]
+endif
+
foreach data : tests
test_sources = '@0@.c'.format(data['name'])
test_bin = executable(