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