style: tests: factor file extension computations

* tests/local.at (AT_LANG_HDR): New.
* tests/calc.at, tests/headers.at, tests/synclines.at: Use it, and
AT_LANG_EXT.
This commit is contained in:
Akim Demaille
2018-10-06 16:18:58 +02:00
parent fd3c17995e
commit 53bde230c6
4 changed files with 14 additions and 8 deletions

View File

@@ -452,7 +452,7 @@ AT_DATA_GRAMMAR([input.y],
%%
exp: '0'
]])
AT_BISON_CHECK([--no-lines -o input.AT_SKEL_CC_IF([cc], [c]) -d input.y])
AT_BISON_CHECK([--no-lines -o input.AT_LANG_EXT -d input.y])
AT_CHECK([[grep '#line' ]AT_SKEL_CC_IF([*.cc *.hh], [*.c *.h])], 1)
AT_BISON_OPTION_POPDEFS