autoconf-patches
[Top][All Lists]
Advanced

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

Re: [PATCH] tests: skip broken automake wrapper on MirBSD


From: Stefano Lattarini
Subject: Re: [PATCH] tests: skip broken automake wrapper on MirBSD
Date: Mon, 13 Sep 2010 20:26:40 +0200
User-agent: KMail/1.13.3 (Linux/2.6.30-2-686; KDE/4.4.4; i686; ; )

On Monday 13 September 2010, Eric Blake wrote:
> Hmm, yeah.  The current version is harmless, but a patch to use the
> shorter regex won't hurt, either.  Do you want to write it?
Done in attached patch.  The most difficult part has been writing a 
decent ChangeLog entry (not sure I've suceeded in doing that, BTW ;-).

Regards,
   Stefano
From a7fe1b04360b92dd2eddf9a025791c468ead26f5 Mon Sep 17 00:00:00 2001
From: Stefano Lattarini <address@hidden>
Date: Mon, 13 Sep 2010 20:19:00 +0200
Subject: [PATCH] tests: simplify grepping of 'automake --version'.

* tests/tools.at (autom4te preselections): Remove minor
redundancies in regular expressions used to grep the output
'automake --version' for test skipping.
* tests/torture.at (Configuring subdirectories)
(Unusual Automake input files): Likewise.
---
 ChangeLog        |    9 +++++++++
 tests/tools.at   |    2 +-
 tests/torture.at |    4 ++--
 3 files changed, 12 insertions(+), 3 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 781ea92..394c4fe 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2010-09-13  Stefano Lattarini  <address@hidden>
+
+       tests: simplify grepping of 'automake --version'.
+       * tests/tools.at (autom4te preselections): Remove minor
+       redundancies in regular expressions used to grep the output
+       'automake --version' for test skipping.
+       * tests/torture.at (Configuring subdirectories)
+       (Unusual Automake input files): Likewise.
+
 2010-09-12  Fernando Carrijo  <address@hidden>  (tiny change)
 
        docs: fix minor typo and 'See See foo' instances
diff --git a/tests/tools.at b/tests/tools.at
index bd50a64..c89ac4c 100644
--- a/tests/tools.at
+++ b/tests/tools.at
@@ -1166,7 +1166,7 @@ AT_SETUP([autom4te preselections])
 
 # We use aclocal and automake.  Skip broken automake wrappers.
 AT_CHECK([automake --version || exit 77], [], [stdout], [ignore])
-AT_CHECK([[grep '[1-9]\.[0-9][0-9]*' stdout || exit 77]], [], [ignore])
+AT_CHECK([[grep '[1-9]\.[0-9]' stdout || exit 77]], [], [ignore])
 AT_CHECK([test ! -f $HOME/.autom4te.cfg || exit 77], [], [ignore], [ignore])
 
 AT_DATA([configure.in],
diff --git a/tests/torture.at b/tests/torture.at
index 7fd85a2..673c7a5 100644
--- a/tests/torture.at
+++ b/tests/torture.at
@@ -1429,7 +1429,7 @@ AT_KEYWORDS(autoreconf)
 
 # We use aclocal (via autoreconf).
 AT_CHECK([aclocal --version || exit 77], [], [stdout], [ignore])
-AT_CHECK([[grep '[1-9]\.[0-9][0-9]*' stdout || exit 77]], [], [ignore])
+AT_CHECK([[grep '[1-9]\.[0-9]' stdout || exit 77]], [], [ignore])
 
 # It should understand configure.ac.
 AT_CHECK([[grep '[^0-9]1\.[01234][^0-9]' stdout && exit 77]], [1], [ignore])
@@ -1812,7 +1812,7 @@ AT_KEYWORDS([autoreconf])
 
 # We use aclocal and automake via autoreconf.
 AT_CHECK([automake --version || exit 77], [], [stdout], [ignore])
-AT_CHECK([[grep '[1-9]\.[0-9][0-9]*' stdout || exit 77]], [], [ignore])
+AT_CHECK([[grep '[1-9]\.[0-9]' stdout || exit 77]], [], [ignore])
 
 AT_DATA([configure.in],
 [[AC_INIT(GNU foo, 1.0)
-- 
1.7.1


reply via email to

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