[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
{master} tests: improve test group titles
From: |
Akim Demaille |
Subject: |
{master} tests: improve test group titles |
Date: |
Fri, 25 Jan 2013 16:49:18 +0100 |
commit 9b3bb25885740be4dfe47343b32d53f040e4534a
Author: Akim Demaille <address@hidden>
Date: Fri Jan 25 11:06:32 2013 +0100
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.
diff --git a/tests/local.at b/tests/local.at
index 39de663..103887d 100644
--- a/tests/local.at
+++ b/tests/local.at
@@ -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
])
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- {master} tests: improve test group titles,
Akim Demaille <=