]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
lex tests: remove erroneous check about ylwrap distribution
authorStefano Lattarini <stefano.lattarini@gmail.com>
Fri, 13 May 2011 13:03:20 +0000 (15:03 +0200)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Fri, 13 May 2011 19:15:45 +0000 (21:15 +0200)
* tests/lex5.test: Do not check that the ylwrap script is *not*
distributed when there is only one lexer, as ylwrap is in fact
expected to distributed unconditionally (at least starting from
commit `Release-1-9-323-gc5881cc' of 19-08-2006).  Note that this
bogus check wasn't triggering any failure because it was done at
the wrong time (i.e. from the VPATH build directory), so that it
could never fail anyway.
Instead, check that ylwrap is distributed even when there is only
one lexer.
Since we are at it, add a couple of `ls -l' calls, to get better
debugging info.

ChangeLog
tests/lex5.test

index 7716923ceae30544aa79343c9548c20f156cd34d..57916e79f73cae0ad1b5209e8139e3b08ddd52bb 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,18 @@
+2011-05-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
+
+       lex tests: remove erroneous check about ylwrap distribution
+       * tests/lex5.test: Do not check that the ylwrap script is *not*
+       distributed when there is only one lexer, as ylwrap is in fact
+       expected to distributed unconditionally (at least starting from
+       commit `Release-1-9-323-gc5881cc' of 19-08-2006).  Note that this
+       bogus check wasn't triggering any failure because it was done at
+       the wrong time (i.e. from the VPATH build directory), so that it
+       could never fail anyway.
+       Instead, check that ylwrap is distributed even when there is only
+       one lexer.
+       Since we are at it, add a couple of `ls -l' calls, to get better
+       debugging info.
+
 2011-05-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
 
        yacc tests: "make clean" removes C++ files from non-distributed .y
index 12d9f00277023d09d15b389b42f5986b24472d13..fd394eb57e37c60162f9687ea4ab9c8dd55a151d 100755 (executable)
@@ -58,15 +58,18 @@ $ACLOCAL
 $AUTOCONF
 $AUTOMAKE -a
 
+# We expect ylwrap to be used and distributed even if there is
+# only one lexer.
+test -f ylwrap
+
 mkdir sub
 cd sub
 ../configure
 $MAKE foo/foo.o
+ls -l # For debugging.
 
 test -f foo/foo.c
 test -f foo/foo.o
-# ylwrap is not needed
-test ! -f ./ylwrap
 
 # Now, adds another lexer to test ylwrap.
 
@@ -84,11 +87,11 @@ END
 $sleep
 
 $AUTOMAKE -a --no-force
-test -f ./ylwrap
 
 cd sub
 using_gnumake || $MAKE Makefile
 $MAKE foo/foo2.o
+ls -l # For debugging.
 test -f foo/foo2.c
 test -f foo/foo2.o