[dbus PATCH 3/7] build: fix distcheck

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

 



Signed-off-by: Pavel Hrdina <phrdina@xxxxxxxxxx>
---
 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

--
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]
  Powered by Linux