mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-15 07:13:02 +00:00
tests: don't abuse AT_BISON_CHECK.
* tests/regression.at (parse-gram.y: LALR = IELR): Move additional shell commands outside of AT_BISON_CHECK.
This commit is contained in:
@@ -1252,9 +1252,11 @@ AT_SETUP([[parse-gram.y: LALR = IELR]])
|
||||
# Avoid tests/bison's dark magic by processing a local copy of the
|
||||
# grammar. Avoid differences in synclines by telling bison that the
|
||||
# output files have the same name.
|
||||
cp $abs_top_srcdir/src/parse-gram.y input.y
|
||||
AT_BISON_CHECK([[-o input.c -Dlr.type=lalr input.y && mv input.c lalr.c]])
|
||||
AT_BISON_CHECK([[-o input.c -Dlr.type=ielr input.y && mv input.c ielr.c]])
|
||||
[cp $abs_top_srcdir/src/parse-gram.y input.y]
|
||||
AT_BISON_CHECK([[-o input.c -Dlr.type=lalr input.y]])
|
||||
[mv input.c lalr.c]
|
||||
AT_BISON_CHECK([[-o input.c -Dlr.type=ielr input.y]])
|
||||
[mv input.c ielr.c]
|
||||
AT_CHECK([[diff -u lalr.c ielr.c]])
|
||||
|
||||
AT_CLEANUP
|
||||
|
||||
Reference in New Issue
Block a user