Signed-off-by: Pavel Hrdina <phrdina(a)redhat.com>
---
Makefile.am | 19 +------------------
configure.ac | 1 +
test/Makefile.am | 16 ++++++++++++++++
3 files changed, 18 insertions(+), 18 deletions(-)
create mode 100644 test/Makefile.am
diff --git a/Makefile.am b/Makefile.am
index 67e9d1e..8ba2137 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,5 +1,5 @@
-SUBDIRS = src
+SUBDIRS = src test
EXTRA_DIST = \
$(PACKAGE).spec \
@@ -24,20 +24,3 @@ gen-AUTHORS:
< $(srcdir)/AUTHORS.in > $(distdir)/AUTHORS-tmp && \
mv -f $(distdir)/AUTHORS-tmp $(distdir)/AUTHORS ; \
fi
-
-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/configure.ac b/configure.ac
index 6a123fb..8de0d35 100644
--- a/configure.ac
+++ b/configure.ac
@@ -46,4 +46,5 @@ AC_SUBST(DBUS_SERVICES_DIR)
AC_OUTPUT(Makefile
src/Makefile
+ test/Makefile
libvirt-dbus.spec)
diff --git a/test/Makefile.am b/test/Makefile.am
new file mode 100644
index 0000000..a7f22d0
--- /dev/null
+++ b/test/Makefile.am
@@ -0,0 +1,16 @@
+test_helpers = \
+ libvirttest.py
+
+test_programs = \
+ test_manager.py \
+ test_domain.py
+
+TESTS = $(test_programs)
+
+EXTRA_DIST = \
+ $(test_helpers) \
+ $(test_programs) \
+ travis-run
+
+TESTS_ENVIRONMENT = \
+ abs_top_builddir=$(abs_top_builddir)
--
2.13.4