[libvirt PATCH 289/351] meson: tests: add dbus specific tests

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Pavel Hrdina <phrdina@xxxxxxxxxx>
---
 tests/Makefile.am | 26 --------------------------
 tests/meson.build | 13 +++++++++++++
 2 files changed, 13 insertions(+), 26 deletions(-)

diff --git a/tests/Makefile.am b/tests/Makefile.am
index a436f9e0645..b721b135cfd 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -31,15 +31,6 @@ if WITH_LIBVIRTD
 test_programs += fdstreamtest
 endif WITH_LIBVIRTD
 
-if WITH_DBUS
-test_programs += virdbustest \
-                 virsystemdtest \
-                 $(NULL)
-if WITH_POLKIT
-test_programs += virpolkittest
-endif WITH_POLKIT
-endif WITH_DBUS
-
 if WITH_SECDRIVER_SELINUX
 if WITH_ATTR
 test_programs += securityselinuxtest \
@@ -614,23 +605,6 @@ test_programs += \
 	virnetdevopenvswitchtest
 endif ! WITH_YAJL
 
-if WITH_DBUS
-virdbustest_SOURCES = \
-	virdbustest.c testutils.h testutils.c
-virdbustest_CFLAGS = $(AM_CFLAGS) $(DBUS_CFLAGS)
-virdbustest_LDADD = $(LDADDS) $(DBUS_LIBS)
-
-virpolkittest_SOURCES = \
-	virpolkittest.c testutils.h testutils.c
-virpolkittest_CFLAGS = $(AM_CFLAGS) $(DBUS_CFLAGS)
-virpolkittest_LDADD = $(LDADDS) $(DBUS_LIBS)
-
-virsystemdtest_SOURCES = \
-	virsystemdtest.c testutils.h testutils.c
-virsystemdtest_CFLAGS = $(AM_CFLAGS) $(DBUS_CFLAGS)
-virsystemdtest_LDADD = $(LDADDS) $(DBUS_LIBS)
-endif ! WITH_DBUS
-
 if WITH_SECDRIVER_SELINUX
 if WITH_ATTR
 
diff --git a/tests/meson.build b/tests/meson.build
index fe4d252c640..86f12a58f7b 100644
--- a/tests/meson.build
+++ b/tests/meson.build
@@ -343,6 +343,19 @@ if conf.has('WITH_BHYVE')
   ]
 endif
 
+if conf.has('WITH_DBUS')
+  tests += [
+    { 'name': 'virdbustest', 'deps': [ dbus_dep ] },
+    { 'name': 'virsystemdtest', 'deps': [ dbus_dep ] },
+  ]
+
+  if conf.has('WITH_POLKIT')
+    tests += [
+      { 'name': 'virpolkittest', 'deps': [ dbus_dep ] },
+    ]
+  endif
+endif
+
 foreach data : tests
   test_sources = '@0@.c'.format(data['name'])
   test_bin = executable(
-- 
2.26.2




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux