* tests/base.at, tests/m4sh.at, tests/m4sugar.at,

* tests/semantics.at, tests/tools.at, tests/torture.at:
s/^AT_DATA(([^][]+),/AT_DATA([$1],/.
This commit is contained in:
Akim Demaille 2001-08-20 14:45:09 +00:00
parent 5693a536c2
commit 2ffdce9940
7 changed files with 31 additions and 24 deletions

View File

@ -1,3 +1,10 @@
2001-08-20 Akim Demaille <akim@epita.fr>
* tests/base.at, tests/m4sh.at, tests/m4sugar.at,
* tests/semantics.at, tests/tools.at, tests/torture.at:
s/^AT_DATA\(([^][]+),/AT_DATA([$1],/.
2001-08-20 Akim Demaille <akim@epita.fr>
Autotest invokes M4sh's initialization.

View File

@ -28,7 +28,7 @@ AT_BANNER([Autoconf base layer.])
AT_SETUP([AC_REQUIRE: topological sort])
AT_DATA(configure.ac,
AT_DATA([configure.ac],
[[define([REQUIRE_AND_CHECK],
[AC_REQUIRE([$1])
test -z "$m4@__@_translit([$1], [A-Z], [a-z])" && AS_EXIT(1)])

View File

@ -30,7 +30,7 @@ m4_pattern_allow([^AS_EXIT$])
m4_pattern_allow([^AS_DIRNAME(_SED)?$])
AT_SETUP([[AS_DIRNAME & AS_DIRNAME_SED]])
AT_DATA(configure.ac,
AT_DATA([configure.ac],
[[AC_PLAIN_SCRIPT()
#! /bin/sh

View File

@ -135,7 +135,7 @@ m4_text_wrap([Super long documentation.], [ ], [ --too-wide], 30)
m4_text_wrap([First, second , third, [,quoted]])
]])
AT_DATA(expout,
AT_DATA([expout],
[[/* Short string */
/* Much longer

View File

@ -202,7 +202,7 @@ AT_CHECK_MACRO([AC_CHECK_TYPES],
# or to the new one.
AT_SETUP([AC_CHECK_TYPES: backward compatibility])
AT_DATA(configure.ac,
AT_DATA([configure.ac],
[[AC_INIT
define([_AC_CHECK_TYPE_NEW], [NEW])
define([_AC_CHECK_TYPE_OLD], [OLD])
@ -283,7 +283,7 @@ AT_SETUP([AC_CHECK_PROG & AC_CHECK_PROGS])
AT_CHECK_PROGS_PREPARE
AT_DATA(configure.ac,
AT_DATA([configure.ac],
[[AC_INIT
pwd=`pwd`
p="1${ac_path_separator}2${ac_path_separator}3${ac_path_separator}4${ac_path_separator}5${ac_path_separator}6"
@ -365,7 +365,7 @@ AT_SETUP(AC_PATH_PROG & AC_PATH_PROGS)
AT_CHECK_PROGS_PREPARE
AT_DATA(configure.ac,
AT_DATA([configure.ac],
[[AC_INIT
pwd=`pwd`
p="1${ac_path_separator}2${ac_path_separator}3${ac_path_separator}4${ac_path_separator}5${ac_path_separator}6"

View File

@ -49,7 +49,7 @@ AT_SETUP([Syntax of the shell scripts])
# A script that never returns. We don't care that it never returns,
# broken /bin/sh loop equally with `false', but it makes it easier to
# test the robusteness in a good environment: just remove the `-n'.
AT_DATA(endless.sh,
AT_DATA([endless.sh],
[[while :
do
:
@ -57,7 +57,7 @@ done
]])
# A script in charge of testing `/bin/sh -n'.
AT_DATA(syntax.sh,
AT_DATA([syntax.sh],
[[(/bin/sh -n endless.sh) &
sleep 2
if kill $! >/dev/null 2>&1; then
@ -134,7 +134,7 @@ AT_CLEANUP
AT_SETUP([autoconf --trace: user macros])
m4_pattern_allow([^m4_(define|shift)$])
AT_DATA(configure.ac,
AT_DATA([configure.ac],
[[m4_define([active], [ACTIVE])
m4_define([TRACE1], [TRACE2(m4_shift($@))])
m4_define([TRACE2], [[$2], $1])
@ -221,7 +221,7 @@ AT_CLEANUP
# --------------------------
AT_SETUP([autoconf --trace: builtins])
AT_DATA(configure.ac,
AT_DATA([configure.ac],
[[define([active], [ACTIVE])
]])
@ -377,14 +377,14 @@ AT_CLEANUP
AT_SETUP([autoheader])
AT_DATA(acconfig.h,
AT_DATA([acconfig.h],
[[/* Define this to whatever you want. */
#undef this
]])
# 1. Check that `acconfig.h' is still honored.
AT_DATA(configure.ac,
AT_DATA([configure.ac],
[[AC_INIT
AC_CONFIG_HEADERS(config.h)
AC_DEFINE(this, "whatever you want.")
@ -398,7 +398,7 @@ AT_CHECK([autoheader --autoconf-dir ../lib -<configure.ac], 0,
# 2. Check that missing templates are a fatal error.
AT_DATA(configure.ac,
AT_DATA([configure.ac],
[[AC_INIT
AC_CONFIG_HEADERS(config.h)
AC_DEFINE(that, "whatever you want.")
@ -410,7 +410,7 @@ AT_CHECK([autoheader --autoconf-dir ../lib -<configure.ac], 1, [],
# 3. Check TOP and BOTTOM.
AT_DATA(acconfig.h,
AT_DATA([acconfig.h],
[[/* Top from acconfig.h. */
@TOP@
/* Middle from acconfig.h. */
@ -418,7 +418,7 @@ AT_DATA(acconfig.h,
/* Bottom from acconfig.h. */
]])
AT_DATA(configure.ac,
AT_DATA([configure.ac],
[[AC_INIT
AC_CONFIG_HEADERS(config.h)
AH_TOP([Top1 from configure.ac.])
@ -463,7 +463,7 @@ AT_CLEANUP
# Check that AC_CANONICAL_SYSTEM and AC_OUTPUT are properly updated.
AT_SETUP([autoupdate])
AT_DATA(configure.ac,
AT_DATA([configure.ac],
[[AC_INIT(Test, 1.0)
AC_CANONICAL_SYSTEM
# The doc says 27 is a valid fubar.
@ -497,15 +497,15 @@ AT_CLEANUP(configure.ac~)
# --------------------------
AT_SETUP([autoupdating AC_LINK_FILES])
AT_DATA(configure.ac,
AT_DATA([configure.ac],
[[AC_INIT
AC_LINK_FILES(dst1 dst2, src1 src2)
AC_OUTPUT
]])
AT_DATA(dst1, dst1
AT_DATA([dst1], dst1
)
AT_DATA(dst2, dst2
AT_DATA([dst2], dst2
)
# Checking `autoupdate'.

View File

@ -106,7 +106,7 @@ AT_CLEANUP
AT_SETUP([AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS])
AT_DATA(configure.ac,
AT_DATA([configure.ac],
[[AC_INIT
rm -rf header var-header file var-file link var-link command var-command
echo 'OK' >input
@ -191,7 +191,7 @@ AT_CLEANUP(header file link commandvar-header var-file var-link var-command
# Check that config.status detects missing input files
AT_SETUP([Missing templates])
AT_DATA(configure.ac,
AT_DATA([configure.ac],
[[AC_INIT
AC_CONFIG_FILES([nonexistent])
AC_OUTPUT
@ -222,7 +222,7 @@ AT_CLEANUP
AT_SETUP([configure invocation])
AT_DATA(configure.ac,
AT_DATA([configure.ac],
[[AC_INIT
echo "result=$one$enable_two$with_three"
AC_OUTPUT
@ -424,7 +424,7 @@ AT_CHECK_AUTOHEADER
AT_CHECK_CONFIGURE
# Checking that AC_DEFINE worked properly.
AT_DATA(expout,
AT_DATA([expout],
[m4_for(AT_Count, 1, 100, 1,
[
/* AT_DESCRIPTION */
@ -433,7 +433,7 @@ AT_DATA(expout,
AT_CHECK([sed -n '3,$ p' config.h], 0, expout)
# Checking that AC_SUBST worked properly.
AT_DATA(expout,
AT_DATA([expout],
[m4_for(AT_Count, 1, 100, 1,
[AT_BIG_VALUE
])])