]> git.saurik.com Git - bison.git/commitdiff
tests: improve test group titles
authorAkim Demaille <akim@lrde.epita.fr>
Fri, 25 Jan 2013 10:06:32 +0000 (11:06 +0100)
committerAkim Demaille <akim@lrde.epita.fr>
Fri, 25 Jan 2013 15:48:36 +0000 (16:48 +0100)
* 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.

tests/local.at

index 39de66393c0c1749b8877973db62f061a41b0be0..103887d0350973b52adf5a8a3b75b175cc657cec 100644 (file)
@@ -31,15 +31,18 @@ m4_define([m4_null_if],
 
 # 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_bpatsubsts([$1],
       [%\(language\|skeleton\) "?\([^\" ]*\)"?],
         [\2],
-      [%define "?\([-A-Za-z0-9_.]+\)"? \("\([^\" ]+\)"\|\([-A-Za-z0-9_.]+\)\)],
-        [\1=\3\4],
+      [%define "?\([-A-Za-z0-9_.]+\)"? \("[^\"]+"\|[-A-Za-z0-9_.]+\)],
+        [\1=\2],
       [%define "?\([-A-Za-z0-9_.]+\)"?],
-        [\1])dnl
+        [\1],
+      [ *
++ *],    [ ])dnl
 ])