test_programs += virjsontest
endif WITH_YAJL
-if WITH_STORAGE_SHEEPDOG
-test_programs += storagebackendsheepdogtest
-endif WITH_STORAGE_SHEEPDOG
-
if WITH_NSS
test_helpers += nsslinktest nssguestlinktest
endif WITH_NSS
vmwarevertest_LDADD = $(LDADDS)
endif WITH_VMWARE
-if WITH_STORAGE_SHEEPDOG
-storagebackendsheepdogtest_SOURCES = \
- storagebackendsheepdogtest.c \
- testutils.c testutils.h
-storagebackendsheepdogtest_LDADD = \
- ../src/libvirt_storage_backend_sheepdog_priv.la \
- ../src/libvirt_driver_storage_impl.la \
- $(LDADDS)
-endif WITH_STORAGE_SHEEPDOG
-
if WITH_NSS
## Intentionaly not linking with anything else.
## See the test source for more detailed explanation.
]
endif
+if conf.has('WITH_STORAGE_SHEEPDOG')
+ tests += [
+ { 'name': 'storagebackendsheepdogtest', 'link_with': [ storage_driver_impl_lib, storage_backend_sheepdog_priv_lib ] },
+ ]
+endif
+
foreach data : tests
test_sources = '@0@.c'.format(data['name'])
test_bin = executable(