diff options
author | Akim Demaille <akim@epita.fr> | 2001-08-04 13:13:36 +0000 |
---|---|---|
committer | Akim Demaille <akim@epita.fr> | 2001-08-04 13:13:36 +0000 |
commit | 37ea55bd5ff689847943a20aed93d8309b6f7383 (patch) | |
tree | d3e9c2f2c237d04dfe9c5b006d16e262cc990da3 | |
parent | 8fffbbe5231b2c34510c4404f33d7b8a0a15a8b5 (diff) | |
download | autoconf-37ea55bd5ff689847943a20aed93d8309b6f7383.tar.gz |
* tests/tools.at (autoconf --trace: user macros): Check traces on
macros invoked without arguments, and macros invoked with multiple
lines arguments.
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | tests/tools.at | 53 |
2 files changed, 46 insertions, 13 deletions
@@ -1,3 +1,9 @@ +2001-08-04 Akim Demaille <akim@epita.fr> + + * tests/tools.at (autoconf --trace: user macros): Check traces on + macros invoked without arguments, and macros invoked with multiple + lines arguments. + 2001-08-03 Alexandre Duret-Lutz <duret_g@epita.fr> * bin/autom4te.in (handle_traces): Fix rewriting of traces without diff --git a/tests/tools.at b/tests/tools.at index 8fc62af4..6ccdaaff 100644 --- a/tests/tools.at +++ b/tests/tools.at @@ -119,32 +119,51 @@ AT_DATA(configure.ac, [[m4_define([active], [ACTIVE]) m4_define([TRACE1], [TRACE2(m4_shift($@))]) m4_define([TRACE2], [[$2], $1]) + +# No arguments. +TRACE1 +TRACE2 + +# With arguments, single line. TRACE1(foo, bar, baz) TRACE1(foo, TRACE1(bar, baz)) TRACE1(foo, active, baz) TRACE1(foo, [active], TRACE1(active, [active])) + +# With arguments, multiple lines. +TRACE1(foo +bar, +bar +foo) ]]) # Several --traces. AT_CHECK_AUTOCONF([-t TRACE1 -t TRACE2], 0, -[[configure.ac:4:TRACE1:foo:bar:baz -configure.ac:4:TRACE2:bar:baz -configure.ac:5:TRACE1:bar:baz -configure.ac:5:TRACE2:baz -configure.ac:5:TRACE1:foo::baz -configure.ac:5:TRACE2::baz -configure.ac:6:TRACE1:foo:ACTIVE:baz -configure.ac:6:TRACE2:ACTIVE:baz -configure.ac:7:TRACE1:ACTIVE:active -configure.ac:7:TRACE2:active -configure.ac:7:TRACE1:foo:active::ACTIVE -configure.ac:7:TRACE2:active::ACTIVE +[[configure.ac:6:TRACE1: +configure.ac:6:TRACE2: +configure.ac:7:TRACE2: +configure.ac:10:TRACE1:foo:bar:baz +configure.ac:10:TRACE2:bar:baz +configure.ac:11:TRACE1:bar:baz +configure.ac:11:TRACE2:baz +configure.ac:11:TRACE1:foo::baz +configure.ac:11:TRACE2::baz +configure.ac:12:TRACE1:foo:ACTIVE:baz +configure.ac:12:TRACE2:ACTIVE:baz +configure.ac:13:TRACE1:ACTIVE:active +configure.ac:13:TRACE2:active +configure.ac:13:TRACE1:foo:active::ACTIVE +configure.ac:13:TRACE2:active::ACTIVE +configure.ac:19:TRACE1:foo bar:bar foo +configure.ac:19:TRACE2:bar foo ]]) # Several line requests. AT_CHECK_AUTOCONF([[-t TRACE1:' [$1], [$2], [$3].']], 0, [[ +[], [], []. + [foo], [bar], [baz]. [bar], [baz], []. @@ -156,16 +175,24 @@ AT_CHECK_AUTOCONF([[-t TRACE1:' [ACTIVE], [active], []. [foo], [active], []. + +[foo +bar], [bar +foo], []. ]]) # ${sep}@. AT_CHECK_AUTOCONF([-t TRACE2:'${)===(}@'], 0, -[[[bar])===([baz] +[[[] +[] +[bar])===([baz] [baz] [])===([baz] [ACTIVE])===([baz] [active] [active])===([])===([ACTIVE] +[bar +foo] ]]) AT_CLEANUP |