From: Peter Krempa Date: Fri, 28 Jul 2017 09:54:37 +0000 (+0200) Subject: tests: Run virdrivermoduletest only when WITH_LIBVIRTD is defined X-Git-Tag: v3.6.0-rc2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=259a16d51400b39ff7a2217746874b206c54ed1a;p=thirdparty%2Flibvirt.git 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. --- 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 = \