]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
meson: tests: add libvirtd specific tests
authorPavel Hrdina <phrdina@redhat.com>
Mon, 27 Jul 2020 09:36:37 +0000 (11:36 +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 381a7921cf58ebff4ce42f02a622b30de41250b4..b5f555baa4afdfa0f1a05511745715f66e770d4b 100644 (file)
@@ -27,10 +27,6 @@ test_programs += \
        $(NULL)
 endif WITH_REMOTE
 
-if WITH_LIBVIRTD
-test_programs += fdstreamtest
-endif WITH_LIBVIRTD
-
 if WITH_SECDRIVER_SELINUX
 if WITH_ATTR
 test_programs += securityselinuxtest \
@@ -148,11 +144,6 @@ libvirtd_test_scripts = \
 
 if WITH_LIBVIRTD
 test_scripts += $(libvirtd_test_scripts)
-
-test_programs += \
-       eventtest \
-       virdrivermoduletest \
-       virdriverconnvalidatetest
 endif WITH_LIBVIRTD
 
 if WITH_SECDRIVER_APPARMOR
@@ -610,23 +601,3 @@ endif WITH_SECDRIVER_SELINUX
 virjsontest_SOURCES = \
        virjsontest.c testutils.h testutils.c
 virjsontest_LDADD = $(LDADDS)
-
-if WITH_LIBVIRTD
-virdrivermoduletest_SOURCES = \
-       virdrivermoduletest.c testutils.h testutils.c
-virdrivermoduletest_LDADD = $(LDADDS)
-
-virdriverconnvalidatetest_SOURCES = \
-       virdriverconnvalidatetest.c testutils.h testutils.c
-virdriverconnvalidatetest_LDADD = $(LDADDS)
-endif WITH_LIBVIRTD
-
-if WITH_LIBVIRTD
-eventtest_SOURCES = \
-       eventtest.c testutils.h testutils.c
-eventtest_LDADD = $(LDADDS)
-endif WITH_LIBVIRTD
-
-fdstreamtest_SOURCES = \
-       fdstreamtest.c testutils.h testutils.c
-fdstreamtest_LDADD = $(LDADDS)
index bc42b1c86ae1ed72c9422e8872187c63929e31a5..87dd99df88346cf50824c2e653c28fda9fbb3197 100644 (file)
@@ -372,6 +372,15 @@ if conf.has('WITH_ESX')
   ]
 endif
 
+if conf.has('WITH_LIBVIRTD')
+  tests += [
+    { 'name': 'eventtest', 'deps': [ thread_dep ] },
+    { 'name': 'fdstreamtest' },
+    { 'name': 'virdriverconnvalidatetest' },
+    { 'name': 'virdrivermoduletest' },
+  ]
+endif
+
 foreach data : tests
   test_sources = '@0@.c'.format(data['name'])
   test_bin = executable(