[PATCH 2/2] tests: Run virdrivermoduletest only when WITH_LIBVIRTD is defined

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

 



The test makes sense only when building the daemon, thus run it only in
such case.
---
 tests/Makefile.am | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/tests/Makefile.am b/tests/Makefile.am
index 6da3e4778..3e3d58071 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -261,8 +261,6 @@ endif WITH_QEMU
 endif WITH_ATTR
 endif WITH_SECDRIVER_SELINUX

-test_programs += virdrivermoduletest
-
 # This is a fake SSH we use from virnetsockettest
 ssh_SOURCES = ssh.c
 ssh_LDADD = $(COVERAGE_LDFLAGS)
@@ -415,7 +413,8 @@ if WITH_LIBVIRTD
 test_scripts += $(libvirtd_test_scripts)

 test_programs += 			\
-	eventtest
+	eventtest \
+	virdrivermoduletest
 else ! WITH_LIBVIRTD
 EXTRA_DIST += $(libvirtd_test_scripts)
 endif ! WITH_LIBVIRTD
@@ -1393,9 +1392,11 @@ utiltest_SOURCES = \
 	utiltest.c testutils.h testutils.c
 utiltest_LDADD = $(LDADDS)

+if WITH_LIBVIRTD
 virdrivermoduletest_SOURCES = \
 	virdrivermoduletest.c testutils.h testutils.c
 virdrivermoduletest_LDADD = $(LDADDS)
+endif WITH_LIBVIRTD

 if WITH_LIBVIRTD
 eventtest_SOURCES = \
-- 
2.13.2

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[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