]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
meson: tests: add node device specific tests
authorPavel Hrdina <phrdina@redhat.com>
Wed, 24 Jun 2020 10:28:17 +0000 (12:28 +0200)
committerPavel Hrdina <phrdina@redhat.com>
Mon, 3 Aug 2020 07:27:05 +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 8e66a946745e0762df6e5ee3f409a4d933327f6d..ae1e97f02d31ad1728b471e48d57e931f424ae28 100644 (file)
@@ -99,10 +99,6 @@ test_helpers += nsslinktest nssguestlinktest
 test_programs += nsstest nssguesttest
 endif WITH_NSS
 
-if WITH_NODE_DEVICES
-test_programs += nodedevmdevctltest
-endif WITH_NODE_DEVICES
-
 test_scripts =
 libvirtd_test_scripts = \
        libvirtd-fail \
@@ -388,16 +384,6 @@ storagepoolcapstest_SOURCES = \
 storagepoolcapstest_LDADD = $(LDADDS)
 endif WITH_STORAGE
 
-if WITH_NODE_DEVICES
-nodedevmdevctltest_SOURCES = \
-       nodedevmdevctltest.c \
-       testutils.c testutils.h
-
-nodedevmdevctltest_LDADD = \
-       ../src/libvirt_driver_nodedev_impl.la \
-       $(LDADDS)
-endif WITH_NODE_DEVICES
-
 virnetmessagetest_SOURCES = \
        virnetmessagetest.c testutils.h testutils.c
 virnetmessagetest_LDADD = $(LDADDS)
index 46bf2b86761b6ac2b477416a7512449b6be1bcdf..7ac481dd8c757faf253bb2f83acb60fadb328f21 100644 (file)
@@ -404,6 +404,12 @@ if conf.has('WITH_NETWORK')
   ]
 endif
 
+if conf.has('WITH_NODE_DEVICES')
+  tests += [
+    { 'name': 'nodedevmdevctltest', 'link_with': [ node_device_driver_impl ] },
+  ]
+endif
+
 foreach data : tests
   test_sources = '@0@.c'.format(data['name'])
   test_bin = executable(