+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.
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)])
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
m4_text_wrap([First, second , third, [,quoted]])
]])
-AT_DATA(expout,
+AT_DATA([expout],
[[/* Short string */
/* Much longer
# 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])
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"
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"
# 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
:
]])
# 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
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])
# --------------------------
AT_SETUP([autoconf --trace: builtins])
-AT_DATA(configure.ac,
+AT_DATA([configure.ac],
[[define([active], [ACTIVE])
]])
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.")
# 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.")
# 3. Check TOP and BOTTOM.
-AT_DATA(acconfig.h,
+AT_DATA([acconfig.h],
[[/* Top from acconfig.h. */
@TOP@
/* Middle from 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.])
# 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.
# --------------------------
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'.
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
# 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
AT_SETUP([configure invocation])
-AT_DATA(configure.ac,
+AT_DATA([configure.ac],
[[AC_INIT
echo "result=$one$enable_two$with_three"
AC_OUTPUT
AT_CHECK_CONFIGURE
# Checking that AC_DEFINE worked properly.
-AT_DATA(expout,
+AT_DATA([expout],
[m4_for(AT_Count, 1, 100, 1,
[
/* AT_DESCRIPTION */
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
])])