tests: factor iterating over skeletons

* tests/local.at (AT_FOR_EACH_SKEL): New.
Use where appropriate.
* data/skeletons/lalr1.d: Reject -d.
* tests/input.at, tests/scanner.at: Also check D.
This commit is contained in:
Akim Demaille
2021-08-07 12:14:35 +02:00
parent 80db1029e6
commit 6d86d26b33
4 changed files with 15 additions and 5 deletions

View File

@@ -157,6 +157,15 @@ m4_define([AT_SAVE_SPECIAL_FILES], [at_save_special_files])
m4_define([AT_RESTORE_SPECIAL_FILES], [at_restore_special_files])
# AT_FOR_EACH_SKEL(BODY)
# ----------------------
m4_define([AT_FOR_EACH_SKEL],
[m4_foreach([b4_skel],
[[yacc.c], [glr.c], [lalr1.cc], [glr.cc], [glr2.cc], [lalr1.d], [lalr1.java]],
[$1])
])
## ------------------------------- ##
## Macros decoding Bison options. ##