* tests/yacc-auxdir.test: Avoid running autoconf, it's not
needed.
* tests/yacc-line.test: Also check that the yacc-generated C
and header files do not contain "#line" directives referencing
`y.tab.c' or `y.tab.h'. Add a couple of explicative comments.
+2011-04-14 Stefano Lattarini <stefano.lattarini@gmail.com>
+
+ tests: minor improvements to a couple of yacc tests
+ * tests/yacc-auxdir.test: Avoid running autoconf, it's not
+ needed.
+ * tests/yacc-line.test: Also check that the yacc-generated C
+ and header files do not contain "#line" directives referencing
+ `y.tab.c' or `y.tab.h'. Add a couple of explicative comments.
+
2011-04-11 Stefano Lattarini <stefano.lattarini@gmail.com>
tests: split yacc6.test, for better separation and coverage
END
$ACLOCAL
-$AUTOCONF
$AUTOMAKE -a
test -f aux1/ylwrap
test ! -f ylwrap
ls -l . sub sub/dir
$FGREP '.y' $c_outputs
+ # Adjusted "#line" should not contain reference to the builddir.
$EGREP '#.*line.*(build|\.\.).*\.y' $c_outputs && Exit 1
+ # Adjusted "#line" should not contain reference to the default
+ # output file names, e.g., `y.tab.c' and `y.tab.h'.
+ $EGREP '#.*line.*y\.tab\.' $c_outputs && Exit 1
# Don't be excessively strict in grepping, to avoid spurious failures.
grep '#.*line.*zardoz\.y' zardoz.c
grep '#.*line.*quux\.y' bar-quux.c