From c5bdb40189ee1eb880eac4689dfdaa6e5e3fd409 Mon Sep 17 00:00:00 2001 From: Martin Pitt Date: Fri, 4 Dec 2009 15:56:47 +0100 Subject: [PATCH 4/4] =?UTF-8?q?Bug=2024446=20=E2=80=94=20automake=20integration=20of=20test=20suite?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This ensures that the test script is shipped with the distribution tarball, and the tests are run during "make check" through sudo. --- Makefile.am | 5 ++++- configure.ac | 1 + tests/Makefile.am | 1 + 3 files changed, 6 insertions(+), 1 deletions(-) create mode 100644 tests/Makefile.am diff --git a/Makefile.am b/Makefile.am index d9a028f..588f05d 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,6 +1,6 @@ ## Process this file with automake to produce Makefile.in -SUBDIRS = data src doc tools policy po +SUBDIRS = data src doc tools policy po tests # Creating ChangeLog from git log (taken from cairo/Makefile.am): ChangeLog: $(srcdir)/ChangeLog @@ -28,3 +28,6 @@ DISTCHECK_CONFIGURE_FLAGS=--disable-man-pages --disable-gtk-doc clean-local : rm -f *~ + +TESTS_ENVIRONMENT = sudo +TESTS = tests/run diff --git a/configure.ac b/configure.ac index e7e6c34..d1ad9b0 100644 --- a/configure.ac +++ b/configure.ac @@ -202,6 +202,7 @@ doc/man/Makefile doc/dbus/Makefile policy/Makefile po/Makefile.in +tests/Makefile ]) dnl ========================================================================== diff --git a/tests/Makefile.am b/tests/Makefile.am new file mode 100644 index 0000000..2143bba --- /dev/null +++ b/tests/Makefile.am @@ -0,0 +1 @@ +EXTRA_DIST = run -- 1.6.5