+2001-03-13 Tim Van Holder <tim.van.holder@pandora.be>
+
+ * tests/aclocal.m4: Fix some typos. Also ignore $PATH_SEPARATOR.
+ * tests/atconfig.in: Set PATH_SEPARATOR to the proper
+ path separator. Set SHELL here...
+ * tests/atgeneral.m4: ... instead of here. Use $PATH_SEPARATOR
+ when setting AUTOTEST_PATH. Don't default tests to "all" before
+ deciding whether the help text is needed.
+ * tests/semantics.at: Use the correct path separator.
+
2001-03-13 Tim Van Holder <tim.van.holder@pandora.be>
* doc/autoconf.texi: Expand section on DOS issues.
shift
done
-test -z "$at_tests" && at_tests=$at_tests_all
-
# Help message.
if $at_help; then
# If tests were specified, display only their title.
- test -z "$at_tests" && cat <<EOF
+ if test -z "$at_tests"; then
+ cat <<EOF
Usage: $[0] [[OPTION]]... [[TESTS]]
Run all the tests, or the selected TESTS.
Tests:
EOF
- # " 1 42 45 " => " (1|42|45): "
- at_tests_pattern=`echo "$at_tests" | sed 's/^ *//;s/ *$//;s/ */|/g'`
- egrep -e " (${at_tests_pattern}): " <<EOF
+ else
+ # " 1 42 45 " => " (1|42|45): "
+ at_tests_pattern=`echo "$at_tests" | sed 's/^ *//;s/ *$//;s/ */|/g'`
+ at_tests_pattern=" (${at_tests_pattern}): "
+ fi
+ egrep -e "$at_tests_pattern" <<EOF
m4_divert([HELP])dnl Help message inserted here.
m4_divert([SETUP])dnl
EOF
exit 0
fi
+# Tests to run.
+test -z "$at_tests" && at_tests=$at_tests_all
+
# Use `diff -u' when possible.
: >empty
if diff -u empty empty >/dev/null 2>&1; then
# AC_STATE_SAVE(FILE)
# ------------------
-# Save the environment, but the variables we are allowed to touch.
+# Save the environment, except for those variables we are allowed to touch.
# This is to check no test touches the user name space.
# FIXME: There are surely better ways. Explore for instance if
# we can ask help from AC_SUBST. We have the right to touch what
-# is AC_SUBST.
+# is AC_SUBST'ed.
# - ^ac_
# Autoconf's shell name space.
# - prefix and exec_prefix
-# are kept undefined (NONE) until AC_OUTPUT with then sets them to
+# are kept undefined (NONE) until AC_OUTPUT which then sets them to
# `/usr/local' and `${prefix}' for make.
# - CONFIG_STATUS and DEFS
# Set by AC_OUTPUT.
[^(host|build|target)(_(alias|cpu|vendor|os))?=],
[^(cross_compiling)=],
[^(interpval)=],
+ [^(PATH_SEPARATOR)=],
[^(f77_(case|underscore))=],
[^(ALLOCA|GETLOADAVG_LIBS|KMEM_GROUP|NEED_SETGID|POW_LIB)=],
[^(AWK|LEX|LEXLIB|LEX_OUTPUT_ROOT|LN_S|M4|RANLIB|SET_MAKE|YACC)=],
-# @configure_input@ -*- shell-script -*-
+# -*- shell-script -*-
+# @configure_input@
# Configurable variable values for building test suites.
# Copyright 2000 Free Software Foundation, Inc.
top_srcdir='@top_srcdir@'
AUTOTEST_PATH='@AUTOTEST_PATH@'
+SHELL=${CONFIG_SHELL-'@SHELL@'}
+PATH_SEPARATOR='@PATH_SEPARATOR@'
+
# We need GNU m4.
M4='@M4@'
shift
done
-test -z "$at_tests" && at_tests=$at_tests_all
-
# Help message.
if $at_help; then
# If tests were specified, display only their title.
- test -z "$at_tests" && cat <<EOF
+ if test -z "$at_tests"; then
+ cat <<EOF
Usage: $[0] [[OPTION]]... [[TESTS]]
Run all the tests, or the selected TESTS.
Tests:
EOF
- # " 1 42 45 " => " (1|42|45): "
- at_tests_pattern=`echo "$at_tests" | sed 's/^ *//;s/ *$//;s/ */|/g'`
- egrep -e " (${at_tests_pattern}): " <<EOF
+ else
+ # " 1 42 45 " => " (1|42|45): "
+ at_tests_pattern=`echo "$at_tests" | sed 's/^ *//;s/ *$//;s/ */|/g'`
+ at_tests_pattern=" (${at_tests_pattern}): "
+ fi
+ egrep -e "$at_tests_pattern" <<EOF
m4_divert([HELP])dnl Help message inserted here.
m4_divert([SETUP])dnl
EOF
exit 0
fi
+# Tests to run.
+test -z "$at_tests" && at_tests=$at_tests_all
+
# Use `diff -u' when possible.
: >empty
if diff -u empty empty >/dev/null 2>&1; then
AT_DATA(configure.ac,
[[AC_INIT
pwd=`pwd`
-path=`echo "1:2:3:4:5:6" | sed -e 's,\([[0-9]]\),'"$pwd"'/path/\1,g'`
+p="1${ac_path_separator}2${ac_path_separator}3${ac_path_separator}4${ac_path_separator}5${ac_path_separator}6"
+path=`echo $p | sed -e 's,\([[0-9]]\),'"$pwd"'/path/\1,g'`
fail=false
AC_CHECK_PROG(TOOL1, tool, found, not-found, $path)
AT_DATA(configure.ac,
[[AC_INIT
pwd=`pwd`
-path=`echo "1:2:3:4:5:6" | sed -e 's,\([[0-9]]\),'"$pwd"'/path/\1,g'`
+p="1${ac_path_separator}2${ac_path_separator}3${ac_path_separator}4${ac_path_separator}5${ac_path_separator}6"
+path=`echo $p | sed -e 's,\([[0-9]]\),'"$pwd"'/path/\1,g'`
fail=false
AC_PATH_PROG(TOOL1, tool, not-found, $path)