[libvirt] [dbus PATCH 3/7] build: fix distcheck

Pavel Hrdina phrdina at redhat.com
Tue Aug 8 15:25:54 UTC 2017


Signed-off-by: Pavel Hrdina <phrdina at redhat.com>
---
 Makefile.am         | 15 ++++++++++++++-
 test/libvirttest.py |  2 +-
 2 files changed, 15 insertions(+), 2 deletions(-)

diff --git a/Makefile.am b/Makefile.am
index abb154c..67e9d1e 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -25,6 +25,19 @@ gen-AUTHORS:
 	  mv -f $(distdir)/AUTHORS-tmp $(distdir)/AUTHORS ;           \
 	fi
 
-TESTS = \
+test_helpers = \
+	test/libvirttest.py
+
+test_programs = \
 	test/test_manager.py \
 	test/test_domain.py
+
+TESTS = $(test_programs)
+
+EXTRA_DIST += \
+	$(test_helpers) \
+	$(test_programs) \
+	test/travis-run
+
+TESTS_ENVIRONMENT = \
+	abs_top_builddir=$(abs_top_builddir)
diff --git a/test/libvirttest.py b/test/libvirttest.py
index 706b352..f5c2020 100644
--- a/test/libvirttest.py
+++ b/test/libvirttest.py
@@ -8,7 +8,7 @@ import subprocess
 import time
 import unittest
 
-root = os.path.dirname(os.path.dirname(__file__))
+root = os.environ.get('abs_top_builddir', os.path.dirname(os.path.dirname(__file__)))
 exe = os.path.join(root, 'src', 'libvirt-dbus')
 
 DBusGMainLoop(set_as_default=True)
-- 
2.13.4




More information about the libvir-list mailing list