[PATCH] make: obey WITH_TESTS; do not run test suite when --enable-test-suite=no

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

 



make: obey WITH_TESTS; do not run test suite when --enable-test-suite=no

Even when --enable-test-suite=no a build would run the test suite. Fix the Makefile so that
tests are conditional on WITH_TESTS.

Signed-off-by: TJ <libvirt@xxxxxx>
---
 Makefile.am | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/Makefile.am b/Makefile.am
index 5b1e27e..3b5e7a2 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -7,10 +7,14 @@ LCOV = lcov
 GENHTML = genhtml
  SUBDIRS = gnulib/lib include src daemon tools docs gnulib/tests \
-  python tests po examples/domain-events/events-c examples/hellolibvirt \
+  python po examples/domain-events/events-c examples/hellolibvirt \
   examples/dominfo examples/domsuspend examples/python examples/apparmor \
   examples/xml/nwfilter examples/openauth examples/systemtap
 +if WITH_TESTS
+SUBDIRS += tests
+endif
+
 ACLOCAL_AMFLAGS = -I m4 -I gnulib/m4
  XML_EXAMPLES = \
-- 
1.8.1.2.433.g9808ce0.dirty

--
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]