[Top][All Lists]

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

FYI: tagtrace test: skip for older autoconf version

From: Ralf Wildenhues
Subject: FYI: tagtrace test: skip for older autoconf version
Date: Thu, 27 Oct 2005 15:17:10 +0200
User-agent: Mutt/1.5.11

Hi Gary,

* Gary V. Vaughan wrote on Thu, Oct 27, 2005 at 12:00:45PM CEST:
> Ralf Wildenhues wrote:
> >
> >To expose: bootstrap with Autoconf CVS, then put 2.59 only in your PATH,
> >then
> >  make check TESTS=tests/tagtrace.test VERBOSE=x TESTSUITE_FLAGS=-V
> >
> >It works the other way round, by the way.
> Okay.


> Don't forget the ChangeLog entry though...

Sorry, forgot do add it right away.  I've applied the patch below, which
also removes the quotes around $AUTOCONF, so it can have arguments.
This is consistent with how we handle $AUTOCONF in the new testsuite.


        * tests/tagtrace.test: Allow `$AUTOCONF' to contain arguments.
        Skip if the running `autoconf' version is older than the one
        used to bootstrap Libtool.

Index: tests/tagtrace.test
RCS file: /cvsroot/libtool/libtool/tests/tagtrace.test,v
retrieving revision 1.7
diff -u -r1.7 tagtrace.test
--- tests/tagtrace.test 22 Apr 2005 10:10:30 -0000      1.7
+++ tests/tagtrace.test 27 Oct 2005 08:57:41 -0000
@@ -25,18 +25,24 @@
 : ${fnord=$srcdir/fnord$$}
-"$AUTOCONF" --version > /dev/null 2>&1 || func_skip "This test requires GNU 
+$AUTOCONF --version > /dev/null 2>&1 || func_skip "This test requires GNU 
 if touch $fnord; then
   rm $fnord
   func_skip "This test requires write access to the source tree"
+if ( cd "$srcdir" && $AUTOCONF --trace 'LT_SUPPORTED_TAG:$1' ) 2>&1 >/dev/null 
+     grep "Autoconf version .*is required" >/dev/null; then
+  func_error "This test requires an Autoconf version at least as new"
+  func_skip  "as the one that was used to bootstrap Libtool"
 # Abort as soon as something fails.
 set -e
 # Retrieve the list of tags supported by our main libtool script.
-traced_tags=`cd "$srcdir" && "$AUTOCONF" --trace 'LT_SUPPORTED_TAG:$1'`
+traced_tags=`cd "$srcdir" && $AUTOCONF --trace 'LT_SUPPORTED_TAG:$1'`
 test -n "$traced_tags"

reply via email to

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