[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 6/6] tests: do not output m4 set up.
From: |
Akim Demaille |
Subject: |
[PATCH 6/6] tests: do not output m4 set up. |
Date: |
Tue, 26 Jun 2012 14:10:49 +0200 |
* tests/local.at (AT_BISON_OPTION_PUSHDEFS, AT_BISON_OPTION_POPDEFS):
Use a diversion to avoid outputting comments etc.
Removes 17k lines from testsuite (10% of the number of lines).
---
tests/local.at | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/tests/local.at b/tests/local.at
index 4de2f7b..5a5bbdd 100644
--- a/tests/local.at
+++ b/tests/local.at
@@ -90,7 +90,8 @@ m4_popdef([AT_LOC_LAST_COLUMN])])
# AT_BISON_OPTION_PUSHDEFS([BISON-OPTIONS])
# -----------------------------------------
m4_define([AT_BISON_OPTION_PUSHDEFS],
-[_AT_BISON_OPTION_PUSHDEFS($[1], $[2], [$1])])
+[m4_divert_text([KILL],
+ [_AT_BISON_OPTION_PUSHDEFS($[1], $[2], [$1])])])
# _AT_BISON_OPTION_PUSHDEFS($1, $2, [BISON-OPTIONS])
@@ -207,6 +208,7 @@ AT_SKEL_CC_IF(
# AT_BISON_OPTION_POPDEFS
# -----------------------
m4_define([AT_BISON_OPTION_POPDEFS],
+[m4_divert_text([KILL],
[m4_popdef([AT_YYLEX_PRE_ARGS])
m4_popdef([AT_YYLEX_PRE_FORMALS])
m4_popdef([AT_USE_LEX_ARGS])
@@ -235,7 +237,7 @@ m4_popdef([AT_SKEL_JAVA_IF])
m4_popdef([AT_GLR_CC_IF])
m4_popdef([AT_LALR1_CC_IF])
m4_popdef([AT_DEFINES_IF])
-AT_LOC_POPDEF
+AT_LOC_POPDEF])dnl
])# AT_BISON_OPTION_POPDEFS
--
1.7.11.1
- [PATCH 0/6] Refactor the test suite, Akim Demaille, 2012/06/27
- Re: [PATCH 0/6] Refactor the test suite, Akim Demaille, 2012/06/26
- [PATCH 1/6] tests: fix confusion between api.prefix and name-prefix., Akim Demaille, 2012/06/27
- [PATCH 3/6] tests: improve the generic yylex implementation., Akim Demaille, 2012/06/27
- [PATCH 4/6] tests: use assert instead of plain abort., Akim Demaille, 2012/06/27
- [PATCH 5/6] tests: use the generic yyerror function., Akim Demaille, 2012/06/27
- [PATCH 6/6] tests: do not output m4 set up.,
Akim Demaille <=
- [PATCH 2/6] tests: generalize the compilation macros., Akim Demaille, 2012/06/27