mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-18 16:53:02 +00:00
tests: improve titles
* tests/local.at (AT_SETUP_STRIP): New. (AT_SETUP): Use it to shorten the test titles: remove %defines, %language and %skeleton whose arguments suffice. * tests/synclines.at: Use more precise AT_SETUP.
This commit is contained in:
@@ -29,6 +29,20 @@ m4_define([m4_null_if],
|
|||||||
[], [$2],
|
[], [$2],
|
||||||
[$3])])
|
[$3])])
|
||||||
|
|
||||||
|
# AT_SETUP_STRIP(TITLE)
|
||||||
|
# ---------------------
|
||||||
|
# Abbreviate the TITLE to be passed to AT_SETUP.
|
||||||
|
m4_define([AT_SETUP_STRIP],
|
||||||
|
[m4_bpatsubsts([$1],
|
||||||
|
[%\(language\|skeleton\) "?\([^\" ]*\)"?],
|
||||||
|
[\2],
|
||||||
|
[%define "?\([-A-Za-z0-9_.]+\)"? \("\([^\" ]+\)"\|\([-A-Za-z0-9_.]+\)\)],
|
||||||
|
[\1=\3\4],
|
||||||
|
[%define "?\([-A-Za-z0-9_.]+\)"?],
|
||||||
|
[\1])dnl
|
||||||
|
])
|
||||||
|
|
||||||
|
|
||||||
## ------------- ##
|
## ------------- ##
|
||||||
## Basic tests. ##
|
## Basic tests. ##
|
||||||
## ------------- ##
|
## ------------- ##
|
||||||
@@ -887,12 +901,20 @@ m4_popdef([AT_COND_CASE])])
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## ----------------------- ##
|
## ----------------------- ##
|
||||||
## Launch the test suite. ##
|
## Launch the test suite. ##
|
||||||
## ----------------------- ##
|
## ----------------------- ##
|
||||||
|
|
||||||
AT_INIT
|
AT_INIT
|
||||||
|
|
||||||
|
# AT_SETUP([TITLE])
|
||||||
|
# -----------------
|
||||||
|
# Redefine AT_SETUP to be more concise. Must be done after AT_INIT.
|
||||||
|
m4_copy_force([AT_SETUP], [B4_SETUP])
|
||||||
|
m4_define([AT_SETUP],
|
||||||
|
[B4_SETUP(m4_expand([AT_SETUP_STRIP([[$1]])]))])
|
||||||
|
|
||||||
# Cannot assign CC and CFLAGS here, since atlocal is loaded after
|
# Cannot assign CC and CFLAGS here, since atlocal is loaded after
|
||||||
# options are processed, so we don't know the value of CXX and
|
# options are processed, so we don't know the value of CXX and
|
||||||
# CXXFLAGS yet.
|
# CXXFLAGS yet.
|
||||||
|
|||||||
@@ -268,7 +268,7 @@ m4_popdef([AT_TEST])
|
|||||||
## ----------- ##
|
## ----------- ##
|
||||||
|
|
||||||
m4_pushdef([AT_TEST],
|
m4_pushdef([AT_TEST],
|
||||||
[AT_SETUP([%no-lines])
|
[AT_SETUP([%no-lines: $1])
|
||||||
|
|
||||||
AT_BISON_OPTION_PUSHDEFS([%skeleton "$1" %defines])
|
AT_BISON_OPTION_PUSHDEFS([%skeleton "$1" %defines])
|
||||||
AT_DATA_GRAMMAR([input.y],
|
AT_DATA_GRAMMAR([input.y],
|
||||||
|
|||||||
Reference in New Issue
Block a user