mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-19 09:13:04 +00:00
tests: improve test group titles
* tests/local.at (AT_SETUP_STRIP): AT_SETUP does not behave properly with new-lines in its argument. Remove them. Fix the handling of %define with quotes.
This commit is contained in:
@@ -31,15 +31,18 @@ m4_define([m4_null_if],
|
|||||||
|
|
||||||
# AT_SETUP_STRIP(TITLE)
|
# AT_SETUP_STRIP(TITLE)
|
||||||
# ---------------------
|
# ---------------------
|
||||||
# Abbreviate the TITLE to be passed to AT_SETUP.
|
# Abbreviate the TITLE to be passed to AT_SETUP. Remove new-lines
|
||||||
|
# that completely break AT_SETUP.
|
||||||
m4_define([AT_SETUP_STRIP],
|
m4_define([AT_SETUP_STRIP],
|
||||||
[m4_bpatsubsts([$1],
|
[m4_bpatsubsts([$1],
|
||||||
[%\(language\|skeleton\) "?\([^\" ]*\)"?],
|
[%\(language\|skeleton\) "?\([^\" ]*\)"?],
|
||||||
[\2],
|
[\2],
|
||||||
[%define "?\([-A-Za-z0-9_.]+\)"? \("\([^\" ]+\)"\|\([-A-Za-z0-9_.]+\)\)],
|
[%define "?\([-A-Za-z0-9_.]+\)"? \("[^\"]+"\|[-A-Za-z0-9_.]+\)],
|
||||||
[\1=\3\4],
|
[\1=\2],
|
||||||
[%define "?\([-A-Za-z0-9_.]+\)"?],
|
[%define "?\([-A-Za-z0-9_.]+\)"?],
|
||||||
[\1])dnl
|
[\1],
|
||||||
|
[ *
|
||||||
|
+ *], [ ])dnl
|
||||||
])
|
])
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user