[Libguestfs] [PATCH 4/4] p2v: split appliance tests in own variable

Pino Toscano ptoscano at redhat.com
Mon Jul 8 17:01:47 UTC 2019


This way they can be properly shipped also when creating a distribution
tarball ('make dist') from a build configured with --disable-appliance.
---
 p2v/Makefile.am | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/p2v/Makefile.am b/p2v/Makefile.am
index e0b194c29..4e2405e9d 100644
--- a/p2v/Makefile.am
+++ b/p2v/Makefile.am
@@ -25,7 +25,7 @@ BUILT_SOURCES = \
 
 EXTRA_DIST = \
 	$(BUILT_SOURCES) \
-	$(TESTS) $(SLOW_TESTS) \
+	$(TESTS) $(APPLIANCE_TESTS) $(SLOW_TESTS) \
 	contrib/aux-scripts/do-build.sh \
 	contrib/build-p2v-iso.sh \
 	contrib/patches/0001-RHEL-5-ONLY-DISABLE-AUTOMATIC-REMOTE-PORT-ALLOCATION.patch \
@@ -288,10 +288,13 @@ TESTS = \
 	test-virt-p2v-cmdline.sh \
 	test-virt-p2v-docs.sh
 
+APPLIANCE_TESTS = \
+	test-virt-p2v.sh \
+	test-virt-p2v-nbdkit.sh
+
 if ENABLE_APPLIANCE
 TESTS += \
-	test-virt-p2v.sh \
-	test-virt-p2v-nbdkit.sh \
+	$(APPLIANCE_TESTS) \
 	$(SLOW_TESTS)
 endif ENABLE_APPLIANCE
 
-- 
2.21.0




More information about the Libguestfs mailing list