]> git.saurik.com Git - bison.git/commit
tests: improve factoring of the main function
authorAkim Demaille <akim@lrde.epita.fr>
Mon, 21 Jan 2013 14:38:49 +0000 (15:38 +0100)
committerAkim Demaille <akim@lrde.epita.fr>
Mon, 21 Jan 2013 15:27:46 +0000 (16:27 +0100)
commitf42c012fcf0c4eb4d07b59caca90de5442f988c3
treea03c9be40d15b6fb26bcaa5f6b3493d4613b72e1
parent3ef9fa8f83316f7955babee666546feb5d9bdefc
tests: improve factoring of the main function

* tests/local.at (AT_MAIN_DEFINE): If %debug is used, check if
-d/--debug is passed to the generated parser, and enable the traces.
Return exactly the result of yyparse, so that we can check exit code
2 too.
* tests/actions.at, tests/glr-regression.at, tests/regression.at:
Use AT_MAIN_DEFINE, helping AT_BISON_OPTION_PUSHDEFS where needed,
preferably to option -t.
tests/actions.at
tests/glr-regression.at
tests/local.at
tests/regression.at