]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
meson: tests: add storage_sheepdog specific tests
authorPavel Hrdina <phrdina@redhat.com>
Mon, 27 Jul 2020 09:39:17 +0000 (11:39 +0200)
committerPavel Hrdina <phrdina@redhat.com>
Mon, 3 Aug 2020 07:27:06 +0000 (09:27 +0200)
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Neal Gompa <ngompa13@gmail.com>
tests/Makefile.am
tests/meson.build

index 53c674301b657e23e6a76b216051d5326e5a5e1a..e2965b0697346e8c8779f15113c5166ce1568023 100644 (file)
@@ -36,10 +36,6 @@ if WITH_YAJL
 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
@@ -132,16 +128,6 @@ vmwarevertest_SOURCES = \
 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.
index 079f33b01862339919eb9e3e9ec86a6329871bca..b41ddcab10f9f90ab203424b87c586eb1e7e653b 100644 (file)
@@ -513,6 +513,12 @@ if conf.has('WITH_STORAGE_FS')
   ]
 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(