From 259a16d51400b39ff7a2217746874b206c54ed1a Mon Sep 17 00:00:00 2001 From: Peter Krempa Date: Fri, 28 Jul 2017 11:54:37 +0200 Subject: [PATCH] tests: Run virdrivermoduletest only when WITH_LIBVIRTD is defined 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 6da3e47784..3e3d58071c 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.39.5