]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
tests: skip broken automake wrapper on MirBSD
authorEric Blake <eblake@redhat.com>
Mon, 13 Sep 2010 16:02:50 +0000 (10:02 -0600)
committerEric Blake <eblake@redhat.com>
Mon, 13 Sep 2010 16:08:58 +0000 (10:08 -0600)
On a fresh default install, MirBSD ships with an automake wrapper
script that has bad behavior:

$ automake --version; echo $?
Provide an AUTOMAKE_VERSION environment variable, please
0

* tests/tools.at (autom4te preselections): Skip, rather than fail,
if 'automake --version' succeeds without printing a version when
an environment variable is not set.
* tests/torture.at (Configuring subdirectories)
(Unusual Automake input files): Likewise.

Signed-off-by: Eric Blake <eblake@redhat.com>
ChangeLog
tests/tools.at
tests/torture.at

index 5a2715cb684f6bd31a37ce2e521679221f4b46c8..1186ca74eba0a987702c006ccf522c9ef4f9a9b0 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2010-09-13  Eric Blake  <eblake@redhat.com>
+
+       tests: skip broken automake wrapper on MirBSD
+       * tests/tools.at (autom4te preselections): Skip, rather than fail,
+       if 'automake --version' succeeds without printing a version when
+       an environment variable is not set.
+       * tests/torture.at (Configuring subdirectories)
+       (Unusual Automake input files): Likewise.
+
 2010-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
 
        doc: minor indexing update.
index 167d68a81417018cc93834d53ffa1e63d5e61d1b..bd50a64354afdcbae635e308b69119a46f953cfc 100644 (file)
@@ -1164,8 +1164,9 @@ AT_SETUP([autom4te preselections])
 # If this test should run on FAT file systems and older w32,
 # then setting $sleep correctly needs to be revisited.
 
-# We use aclocal and automake.
-AT_CHECK([automake --version || exit 77], [], [ignore], [ignore])
+# 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([test ! -f $HOME/.autom4te.cfg || exit 77], [], [ignore], [ignore])
 
 AT_DATA([configure.in],
index 566a45134f7f61965c0057f825f1e19061f90965..7fd85a267543ac5609318663517f2df101d7a617 100644 (file)
@@ -1429,8 +1429,10 @@ 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])
+
 # It should understand configure.ac.
-AT_CHECK([[grep '[^0-9]1.[01234][^0-9]' stdout && exit 77]], [1], [ignore])
+AT_CHECK([[grep '[^0-9]1\.[01234][^0-9]' stdout && exit 77]], [1], [ignore])
 
 # Set CONFIG_SITE to a nonexistent file, so that there are
 # no worries about nonstandard values for 'prefix'.
@@ -1809,7 +1811,8 @@ AT_SETUP([Unusual Automake input files])
 AT_KEYWORDS([autoreconf])
 
 # We use aclocal and automake via autoreconf.
-AT_CHECK([automake --version || exit 77], [], [ignore], [ignore])
+AT_CHECK([automake --version || exit 77], [], [stdout], [ignore])
+AT_CHECK([[grep '[1-9]\.[0-9][0-9]*' stdout || exit 77]], [], [ignore])
 
 AT_DATA([configure.in],
 [[AC_INIT(GNU foo, 1.0)