bug-gettext
[Top][All Lists]
Advanced

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

[bug-gettext] [PATCH] build: enable parallel tests harness from Automake


From: Stefano Lattarini
Subject: [bug-gettext] [PATCH] build: enable parallel tests harness from Automake
Date: Fri, 14 Dec 2012 18:11:38 +0100

This way, we'll be able to run test cases in parallel (useful
on multicore systems), and output from test cases will be
saved in log files, which should simplify debugging and bug
reporting.

* configure.ac (AM_INIT_AUTOMAKE): Add 'parallel-tests' option.
Require Automake 1.11.1 or later, so that the 'parallel-tests'
will be certainly available.
(AC_INIT): Require Autoconf 2.62 or later; that is the minimal
version supported by Automake 1.11.1 or later.
* gettext-runtime/configure.ac: Likewise.
* gettext-tools/configure.ac: Likewise.
* autogen.sh: Update version number requirement for Autoconf.
* gettext-tools/tests/Makefile.am (TESTS_ENVIRONMENT): Remove
trailing '$(SHELL)'.  With the parallel-tests harness, this is
no longer the correct way to define a custom test runner for
the test scripts; to do so, we have to ...
(LOG_COMPILER): ... define this to $(SHELL).

Copyright-paperwork-exempt: yes
Signed-off-by: Stefano Lattarini <address@hidden>
---

 I fear this patch fills up my quote of changes that can go in
 a package without the need to sign FSF paperwork.  After this,
 I should either limit myself to problem reports and hand-waving
 advices, or sign another copyright disclaimer (sigh).  We'll
 see.

 Regards,
   Stefano

 ChangeLog                       | 9 +++++++++
 autogen.sh                      | 2 +-
 configure.ac                    | 4 ++--
 gettext-runtime/ChangeLog       | 8 ++++++++
 gettext-runtime/configure.ac    | 4 ++--
 gettext-tools/ChangeLog         | 8 ++++++++
 gettext-tools/configure.ac      | 4 ++--
 gettext-tools/tests/ChangeLog   | 5 +++++
 gettext-tools/tests/Makefile.am | 5 +++--
 9 files changed, 40 insertions(+), 9 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 1fe3f9c..7bf75d1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2012-12-14  Stefano Lattarini  <address@hidden>  (tiny change)
+
+       * configure.ac (AM_INIT_AUTOMAKE): Add 'parallel-tests' option.
+       Require Automake 1.11.1 or later, so that the 'parallel-tests'
+       will be certainly available.
+       (AC_INIT): Require Autoconf 2.62 or later; that is the minimal
+       version supported by Automake 1.11.1 or later.
+       * autogen.sh: Update version number requirement for Autoconf.
+
 2012-12-08  Daiki Ueno  <address@hidden>
 
        * autogen.sh: Ignore libunistring tests which are known to fail.
diff --git a/autogen.sh b/autogen.sh
index 9b1b29a..511c435 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -4,7 +4,7 @@
 # also regenerates all aclocal.m4, config.h.in, Makefile.in, configure files
 # with new versions of autoconf or automake.
 #
-# This script requires autoconf-2.60..2.69 and automake-1.11.1..1.12 in the
+# This script requires autoconf-2.62..2.69 and automake-1.11.1..1.12 in the
 # PATH.
 # It also requires either
 #   - the GNULIB_TOOL environment variable pointing to the gnulib-tool script
diff --git a/configure.ac b/configure.ac
index 7c8d2c0..fcff9e7 100644
--- a/configure.ac
+++ b/configure.ac
@@ -16,13 +16,13 @@ dnl along with this program.  If not, see 
<http://www.gnu.org/licenses/>.
 
 dnl Process this file with autoconf to produce a configure script.
 
-AC_PREREQ([2.59])
+AC_PREREQ([2.62])
 AC_INIT
 AC_CONFIG_SRCDIR([gettext-tools/src/msgfmt.c])
 AC_CONFIG_AUX_DIR([build-aux])
 . $srcdir/version.sh
 gl_INIT_PACKAGE([gettext], [$VERSION_NUMBER])
-AM_INIT_AUTOMAKE([silent-rules])
+AM_INIT_AUTOMAKE([1.11.1 silent-rules parallel-tests])
 
 dnl Override automake's tar command used for creating distributions.
 am__tar='${AMTAR} chof - --owner=root --group=root "$$tardir"'
diff --git a/gettext-runtime/ChangeLog b/gettext-runtime/ChangeLog
index c3e6e95..3e16131 100644
--- a/gettext-runtime/ChangeLog
+++ b/gettext-runtime/ChangeLog
@@ -1,3 +1,11 @@
+2012-12-14  Stefano Lattarini  <address@hidden>  (tiny change)
+
+       * configure.ac (AM_INIT_AUTOMAKE): Add 'parallel-tests' option.
+       Require Automake 1.11.1 or later, so that the 'parallel-tests'
+       will be certainly available.
+       (AC_INIT): Require Autoconf 2.62 or later; that is the minimal
+       version supported by Automake 1.11.1 or later.
+
 2012-01-26  Bruno Haible  <address@hidden>
 
        Modernize quoting.
diff --git a/gettext-runtime/configure.ac b/gettext-runtime/configure.ac
index 99c80ba..f42993b 100644
--- a/gettext-runtime/configure.ac
+++ b/gettext-runtime/configure.ac
@@ -16,13 +16,13 @@ dnl along with this program.  If not, see 
<http://www.gnu.org/licenses/>.
 
 dnl Process this file with autoconf to produce a configure script.
 
-AC_PREREQ([2.59])
+AC_PREREQ([2.62])
 AC_INIT
 AC_CONFIG_SRCDIR([intl/dcigettext.c])
 AC_CONFIG_AUX_DIR([../build-aux])
 . $srcdir/../version.sh
 gl_INIT_PACKAGE([gettext-runtime], [$VERSION_NUMBER])
-AM_INIT_AUTOMAKE([silent-rules])
+AM_INIT_AUTOMAKE([1.11.1 silent-rules parallel-tests])
 AM_CONFIG_HEADER([config.h])
 
 dnl Installation directories.
diff --git a/gettext-tools/ChangeLog b/gettext-tools/ChangeLog
index b405056..7690679 100644
--- a/gettext-tools/ChangeLog
+++ b/gettext-tools/ChangeLog
@@ -1,3 +1,11 @@
+2012-12-14  Stefano Lattarini  <address@hidden>  (tiny change)
+
+       * configure.ac (AM_INIT_AUTOMAKE): Add 'parallel-tests' option.
+       Require Automake 1.11.1 or later, so that the 'parallel-tests'
+       will be certainly available.
+       (AC_INIT): Require Autoconf 2.62 or later; that is the minimal
+       version supported by Automake 1.11.1 or later.
+
 2012-01-26  Bruno Haible  <address@hidden>
 
        Modernize quoting.
diff --git a/gettext-tools/configure.ac b/gettext-tools/configure.ac
index 8db84d3..d7537e8 100644
--- a/gettext-tools/configure.ac
+++ b/gettext-tools/configure.ac
@@ -16,13 +16,13 @@ dnl along with this program.  If not, see 
<http://www.gnu.org/licenses/>.
 
 dnl Process this file with autoconf to produce a configure script.
 
-AC_PREREQ([2.59])
+AC_PREREQ([2.62])
 AC_INIT
 AC_CONFIG_SRCDIR([src/msgfmt.c])
 AC_CONFIG_AUX_DIR([../build-aux])
 . $srcdir/../version.sh
 gl_INIT_PACKAGE([gettext-tools], [$VERSION_NUMBER])
-AM_INIT_AUTOMAKE([silent-rules])
+AM_INIT_AUTOMAKE([1.11.1 silent-rules parallel-tests])
 AM_CONFIG_HEADER([config.h])
 
 dnl Installation directories.
diff --git a/gettext-tools/tests/ChangeLog b/gettext-tools/tests/ChangeLog
index 0cc1edc..7c103fb 100644
--- a/gettext-tools/tests/ChangeLog
+++ b/gettext-tools/tests/ChangeLog
@@ -1,3 +1,8 @@
+2012-12-14  Stefano Lattarini  <address@hidden>  (tiny change)
+
+       * Makefile.am (TESTS_ENVIRONMENT): Remove $(SHELL).
+       (LOG_COMPILER): Define to $(SHELL).
+
 2012-06-03  Jim Meyering  <address@hidden>
 
        * msgcomm-17: Spelling fixes.
diff --git a/gettext-tools/tests/Makefile.am b/gettext-tools/tests/Makefile.am
index f875913..47a0916 100644
--- a/gettext-tools/tests/Makefile.am
+++ b/gettext-tools/tests/Makefile.am
@@ -187,8 +187,9 @@ TESTS_ENVIRONMENT = top_srcdir=$(top_srcdir) \
                    LOCALE_FR_UTF8='@LOCALE_FR_UTF8@' \
                    LOCALE_JA='@LOCALE_JA@' \
                    host_os='@host_os@' \
-                   CONFIG_SHELL='$(SHELL)' \
-                   $(SHELL)
+                   CONFIG_SHELL='$(SHELL)'
+
+LOG_COMPILER = $(SHELL)
 
 # Update the expected test results.
 update-expected: xg-c-1.ok.po
-- 
1.8.0.1.347.gf94c325




reply via email to

[Prev in Thread] Current Thread [Next in Thread]