summaryrefslogtreecommitdiff
path: root/tests/lex5.test
diff options
context:
space:
mode:
authorStefano Lattarini <stefano.lattarini@gmail.com>2012-02-12 15:06:17 +0100
committerStefano Lattarini <stefano.lattarini@gmail.com>2012-02-12 15:32:54 +0100
commite6c40d4bba3155a8dd2406806a7be51d3ac73ed0 (patch)
tree4caf0f32c690a3195eda4e5f58763347e5608464 /tests/lex5.test
parent19bab32531bc8c41e984460a2fa59205ecb623cd (diff)
parentabe0587b12ac59561d011640d998e7dd74b1820f (diff)
downloadautomake-e6c40d4bba3155a8dd2406806a7be51d3ac73ed0.tar.gz
Merge branch 'yacc-work' into yl-work-for-master
* yacc-work: (37 commits) fixup: list of yacc/lex tests was botched tests: work around bug#7884 in many yacc/lex tests yacc/lex tests: remove an unneeded workaround for bug#8485 yacc/lex tests: avoid too much failures with FreeBSD make yacc-dist-nobuild.test: add reference to bug#7884 yacc tests: fix bug in 'yacc-cxx.test' lex tests: fix spurious link errors on Solaris lex: "make clean" removes .c files from non-distributed .l lex tests: make test on Lex dependency tracking more "semantic" lex tests: remove erroneous check about ylwrap distribution yacc tests: "make clean" removes C++ files from non-distributed .y tests: add a workaround for automake bug#8485 tests: add a couple of inter-tests reference lex tests: require just `lex' instead of `flex' fix typo in ChangeLog (2011-05-04) tests defs: use `skip_' for skipping yacc/lex related tests lex/yacc tests: remove redundant $distdir definition coverage: test lex-generated "#line" directives postprocessing tests: minor improvements to a couple of yacc tests tests: fix spurious failure in test 'yacc-d-cxx.test' ... + Extra non-trivial edits: * tests/defs.in: Delete; the differences from maint has been merged into 'tests/defs' and 'tests/defs-static.in'. * tests/defs (yacc, lex): Use 'skip_all_', not 'skip_', to skip the whole test case if yacc (resp. lex) is missing. (bison): New, set up the environment so that 'bison -y' will be used as the yacc program. (useless_vpath_rebuild, yl_distcheck): Moved in from 'tests/defs.in'. * tests/defs-static.in ($YACC, $LEX): Default to the values determined at configure time, and allow them to be overridden by the more namespace-safe variables '$AM_TESTSUITE_YACC' and '$AM_TESTSUITE_LEX' respectively. * tests/Makefile.am (do_subst): Also substitute '@YACC@' and '@LEX@'. * Several tests: Fix requirements declarations, by preferring 'lex' and 'yacc' over 'flex' and 'bison' whenever possible.
Diffstat (limited to 'tests/lex5.test')
-rwxr-xr-xtests/lex5.test11
1 files changed, 7 insertions, 4 deletions
diff --git a/tests/lex5.test b/tests/lex5.test
index 932a37421..2ba2ad69c 100755
--- a/tests/lex5.test
+++ b/tests/lex5.test
@@ -17,7 +17,7 @@
# Test for subdir lexers.
-required='cc flex'
+required='cc lex'
. ./defs || Exit 1
cat >> configure.in << 'END'
@@ -56,15 +56,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.
@@ -82,11 +85,11 @@ END
$sleep
$AUTOMAKE -a --no-force
-test -f ./ylwrap
cd sub
using_gmake || $MAKE Makefile
$MAKE foo/foo2.o
+ls -l # For debugging.
test -f foo/foo2.c
test -f foo/foo2.o