($using_tap): Renamed ...
($am_using_tap): ... to this.
($parallel_tests): Renamed ...
($am_parallel_tests): ... to this.
($test_prefer_config_shell): Renamed ...
($am_test_prefer_config_shell): ... to this.
($original_AUTOMAKE): Renamed ...
($am_original_AUTOMAKE): ... to this.
($original_ACLOCAL): Renamed ...
($am_original_ACLOCAL): ... to this.
* tests/defs, tests/defs-static.in, tests/gen-testsuite-part,
tests/README, and all callers: Adjusted.
* tests/Makefile.am (AM_TESTS_ENVIRONMENT): Adjust, and rewrite
to make future adjustments easier.
* tests/defs (funcs_file_): Renamed ...
(am_funcs_file): ... to this.
* Makefile.am (sc_tests_obsolete_variables): New maintainer
check.
(syntax_check_rules): Add it.
+2011-09-10 Stefano Lattarini <stefano.lattarini@gmail.com>
+
+ tests defs: more namespace-safeness
+ ($using_tap): Renamed ...
+ ($am_using_tap): ... to this.
+ ($parallel_tests): Renamed ...
+ ($am_parallel_tests): ... to this.
+ ($test_prefer_config_shell): Renamed ...
+ ($am_test_prefer_config_shell): ... to this.
+ ($original_AUTOMAKE): Renamed ...
+ ($am_original_AUTOMAKE): ... to this.
+ ($original_ACLOCAL): Renamed ...
+ ($am_original_ACLOCAL): ... to this.
+ * tests/defs, tests/defs-static.in, tests/gen-testsuite-part,
+ tests/README, and all callers: Adjusted.
+ * tests/Makefile.am (AM_TESTS_ENVIRONMENT): Adjust, and rewrite
+ to make future adjustments easier.
+ * tests/defs (funcs_file_): Renamed ...
+ (am_funcs_file): ... to this.
+ * Makefile.am (sc_tests_obsolete_variables): New maintainer
+ check.
+ (syntax_check_rules): Add it.
+
2011-09-10 Stefano Lattarini <stefano.lattarini@gmail.com>
tests: avoid creating useless files in some test directories
sc_perl_local \
sc_AMDEP_TRUE_in_automake_in \
sc_tests_make_without_am_makeflags \
+sc_tests_obsolete_variables \
sc_tests_plain_make \
sc_tests_plain_autoconf \
sc_tests_plain_autoupdate \
exit 1; \
fi
+## Look out for some obsolete variables.
+sc_tests_obsolete_variables:
+ @vars=" \
+ using_tap \
+ parallel_tests \
+ test_prefer_config_shell \
+ original_AUTOMAKE \
+ original_ACLOCAL \
+ "; \
+ seen=""; \
+ for v in $$vars; do \
+ if grep -E "\b$$v\b" \
+ $(srcdir)/tests/*.test \
+ $(srcdir)/tests/*.tap \
+ $(srcdir)/tests/*.sh \
+ $(srcdir)/tests/defs \
+ $(srcdir)/tests/defs-static.in \
+ ; then \
+ seen="$$seen $$v"; \
+ fi; \
+ done; \
+ if test -n "$$seen"; then \
+ for v in $$seen; do \
+ echo "Variable '$$v' is obsolete, use 'am_$$v' instead." 1>&2; \
+ done; \
+ exit 1; \
+ else :; fi
+
## Tests should never call make directly.
sc_tests_plain_make:
@if grep -v '^#' $(srcdir)/tests/*.test | $(EGREP) ':[ ]*make( |$$)'; then \
sc_perl_local \
sc_AMDEP_TRUE_in_automake_in \
sc_tests_make_without_am_makeflags \
+sc_tests_obsolete_variables \
sc_tests_plain_make \
sc_tests_plain_autoconf \
sc_tests_plain_autoupdate \
exit 1; \
fi
+sc_tests_obsolete_variables:
+ @vars=" \
+ using_tap \
+ parallel_tests \
+ test_prefer_config_shell \
+ original_AUTOMAKE \
+ original_ACLOCAL \
+ "; \
+ seen=""; \
+ for v in $$vars; do \
+ if grep -E "\b$$v\b" \
+ $(srcdir)/tests/*.test \
+ $(srcdir)/tests/*.tap \
+ $(srcdir)/tests/*.sh \
+ $(srcdir)/tests/defs \
+ $(srcdir)/tests/defs-static.in \
+ ; then \
+ seen="$$seen $$v"; \
+ fi; \
+ done; \
+ if test -n "$$seen"; then \
+ for v in $$seen; do \
+ echo "Variable '$$v' is obsolete, use 'am_$$v' instead." 1>&2; \
+ done; \
+ exit 1; \
+ else :; fi
+
sc_tests_plain_make:
@if grep -v '^#' $(srcdir)/tests/*.test | $(EGREP) ':[ ]*make( |$$)'; then \
echo 'Do not run "make" in the above tests. Use "$$MAKE" instead.' 1>&2; \
# Some testsuite-influential variables should be overridable from the
# test scripts, but not from the environment.
AM_TESTS_ENVIRONMENT = \
- test x"$$me" = x || unset me; \
- test x"$$required" = x || unset required; \
- test x"$$using_tap" = x || unset using_tap; \
- test x"$$parallel_tests" = x || unset parallel_tests; \
- test x"$$test_prefer_config_shell" || unset test_prefer_config_shell; \
- test x"$$original_AUTOMAKE" = x || unset original_AUTOMAKE; \
- test x"$$original_ACLOCAL" = x || unset original_ACLOCAL;
+ for v in \
+ me \
+ required \
+ am_using_tap \
+ am_parallel_tests \
+ am_test_prefer_config_shell \
+ am_original_AUTOMAKE \
+ am_original_ACLOCAL \
+ ; do \
+ eval test x"\$${$$v}" = x || unset $$v; \
+ done;
# The `AM_TESTS_REEXEC=no' setting tells the tests not to needlessly
# re-execute themselves with the shell detected at configure time, since
# we are already running them under it explicitly in our setup (see e.g.
# re-execute themselves with the shell detected at configure time, since
# we are already running them under it explicitly in our setup (see e.g.
# the definition of TEST_LOG_COMPILER above).
-AM_TESTS_ENVIRONMENT = test x"$$me" = x || unset me; test \
- x"$$required" = x || unset required; test x"$$using_tap" = x \
- || unset using_tap; test x"$$parallel_tests" = x || unset \
- parallel_tests; test x"$$test_prefer_config_shell" || unset \
- test_prefer_config_shell; test x"$$original_AUTOMAKE" = x || \
- unset original_AUTOMAKE; test x"$$original_ACLOCAL" = x || \
- unset original_ACLOCAL; AM_TESTS_REEXEC=no; export \
+AM_TESTS_ENVIRONMENT = for v in me required am_using_tap \
+ am_parallel_tests am_test_prefer_config_shell \
+ am_original_AUTOMAKE am_original_ACLOCAL ; do eval test \
+ x"\$${$$v}" = x || unset $$v; done; AM_TESTS_REEXEC=no; export \
AM_TESTS_REEXEC; stderr_fileno_=9; export stderr_fileno_;
# We want warning messages and explanations for skipped tests to go to
# the console if possible, so set up `stderr_fileno_' properly.
instead.
For tests that use the `parallel-tests' Automake option, set the shell
- variable `parallel_tests' to "yes" before including ./defs. For tests
+ variable `am_parallel_tests' to "yes" before including ./defs. For tests
that are *not* meant to work with the `parallel-tests' Automake option
- (these should be very very few), set the shell variable `parallel_tests'
+ (these should be very very few), set the shell variable `am_parallel_tests'
to "no" before including ./defs.
Some tests in the Automake testsuite are auto-generated; those tests
# parallel-tests: check AM_TESTS_ENVIRONMENT support, and its
# interactions with TESTS_ENVIRONMENT.
-parallel_tests=yes
+am_parallel_tests=yes
. ./defs || Exit 1
cat >> configure.in << 'END'
. ./defs || Exit 1
# We want complete control over automake options.
-AUTOMAKE=$original_AUTOMAKE
+AUTOMAKE=$am_original_AUTOMAKE
cat > configure.in <<END
AC_INIT([$me], [1.0])
# This script can also serve as mild stress-testing for Automake.
# See also the similar test `backcompat6.test'.
-parallel_tests=no
+am_parallel_tests=no
. ./defs || Exit 1
# Yuck!
for j in '' -j1 -j2; do
$MAKE $j check && Exit 1
TESTS=foo.test $MAKE $j -e check && Exit 1
- if test x"$parallel_tests" = x"yes"; then
+ if test x"$am_parallel_tests" = x"yes"; then
$MAKE $j recheck && Exit 1
TEST_LOGS=foo.log $MAKE $j -e check && Exit 1
rm -f test-suite.log
show_info ()
{
- if test x"$parallel_tests" = x"yes"; then
+ if test x"$am_parallel_tests" = x"yes"; then
cat foo.log
cat test-suite.log
else
cat stdout
cat stderr >&2
cat four
- test x"$parallel_tests" != x"yes" || cat foo.log
+ test x"$am_parallel_tests" != x"yes" || cat foo.log
test $st -eq 0
grep '[ /]foo\.test: foofoofoo$' stdout
grep '[ /]foo\.test: barbarbar$' stderr
# installed or referenced when the 'parallel-tests' option is not
# used.
-parallel_tests=no
+am_parallel_tests=no
. ./defs || Exit 1
echo 'TESTS = foo.test' > Makefile.am
XFAIL_TESTS = @xfail_tests@
END
-if test "$parallel_tests" = yes; then
+if test "$am_parallel_tests" = yes; then
unindent >> Makefile.am <<'END'
TEST_EXTENSIONS = .sh .test
SH_LOG_COMPILER = $(SHELL)
cp xfail-script.test subst-xfail-script.sh
chmod a+x pass-script.test xfail-script.test
-if test "$parallel_tests" != yes; then
+if test "$am_parallel_tests" != yes; then
chmod a+x subst-pass-script.sh subst-xfail-script.sh
fi
$srcdir/configure
$MAKE all
$MAKE check
- if test "$parallel_tests" = yes; then
+ if test "$am_parallel_tests" = yes; then
ls -l
test -f pass-script.log
test -f xfail-script.log
cat out
# The simple-tests driver does not strip VPATH components from
# the name of the test, but the parallel-tests driver should.
-if test x"$parallel_tests" = x"yes"; then
+if test x"$am_parallel_tests" = x"yes"; then
grep '\.\./foo' out && Exit 1
grep '^PASS: foo.test *$' out
else
FOO_EXIT_STATUS=1 $MAKE check >out 2>&1 && { cat out; Exit1; }
cat out
# See comments above.
-if test x"$parallel_tests" = x"yes"; then
+if test x"$am_parallel_tests" = x"yes"; then
grep '\.\./foo' out && Exit 1
grep '^FAIL: foo.test *$' out
else
TESTS = frob.test
END
-test x"$parallel_tests" != x"yes" || : > test-driver
+test x"$am_parallel_tests" != x"yes" || : > test-driver
: > frob.test
# Check singular and plural in test summaries.
# This test only makes sense for the older serial testsuite driver.
-parallel_tests=no
+am_parallel_tests=no
. ./defs || Exit 1
cat >> configure.in << 'END'
env TESTS=skip $MAKE -e check >stdout || { cat stdout; Exit 1; }
cat stdout
-if test x"$parallel_tests" = x"yes"; then
+if test x"$am_parallel_tests" = x"yes"; then
count_test_results total=1 pass=0 fail=0 skip=1 xfail=0 xpass=0 error=0
else
grep '1.*passed' stdout && Exit 1
env TESTS="skip skip2" $MAKE -e check >stdout || { cat stdout; Exit 1; }
cat stdout
-if test x"$parallel_tests" = x"yes"; then
+if test x"$am_parallel_tests" = x"yes"; then
count_test_results total=2 pass=0 fail=0 skip=2 xfail=0 xpass=0 error=0
else
grep '2.*passed' stdout && Exit 1
test -f spanner.log
test -f spanner.sum
# This checks will be run only by the autogenerated `check12-p.test'.
- if test x"$parallel_tests" = x"yes"; then
+ if test x"$am_parallel_tests" = x"yes"; then
test -f test-suite.log
test -f a.log
test -f b.log
B_EXIT_STATUS=1 $MAKE check && Exit 1
# This checks will be run only by the autogenerated `check12-p.test'.
- if test x"$parallel_tests" = x"yes"; then
+ if test x"$am_parallel_tests" = x"yes"; then
cat test-suite.log
cat a.log
cat b.log
grep 'FAIL: test_hammer' hammer.sum
grep 'FAIL:' spanner.sum && Exit 1
# This checks will be run only by the autogenerated `check12-p.test'.
- if test x"$parallel_tests" = x"yes"; then
+ if test x"$am_parallel_tests" = x"yes"; then
cat test-suite.log
cat a.log
cat b.log
CLEANFILES = echo.sh
END
-if test x"$parallel_tests" = x"yes"; then
+if test x"$am_parallel_tests" = x"yes"; then
cp "$am_scriptdir/test-driver" .
fi
cat stdout | grep "^${red}XPASS${std}: .*xpass"
# The old serial testsuite driver doesn't distinguish between failures
# and hard errors.
- if test x"$parallel_tests" = x"yes"; then
+ if test x"$am_parallel_tests" = x"yes"; then
cat stdout | grep "^${mgn}ERROR${std}: .*error"
else
cat stdout | grep "^${red}FAIL${std}: .*error"
cat stdout | grep "^${red}XPASS${std}: .*xpass"
# The old serial testsuite driver doesn't distinguish between failures
# and hard errors.
- if test x"$parallel_tests" = x"yes"; then
+ if test x"$am_parallel_tests" = x"yes"; then
cat stdout | grep "^${mgn}ERROR${std}: .*error"
else
cat stdout | grep "^${red}FAIL${std}: .*error"
# We want complete control automake flags, while honouring the
# user overrides for $AUTOMAKE.
-AUTOMAKE=$original_AUTOMAKE
+AUTOMAKE=$am_original_AUTOMAKE
# Sanity check: gnu mode must complain about missing files and
# portability problems.
## ----------------------- ##
echo "Running from installcheck: $am_running_installcheck"
-echo "Using TAP: $using_tap"
+echo "Using TAP: $am_using_tap"
echo "PATH = $PATH"
(exit $1); exit $1
}
-if test $using_tap = yes; then
- funcs_file_=tap-functions.sh
+if test $am_using_tap = yes; then
+ am_funcs_file=tap-functions.sh
else
- funcs_file_=plain-functions.sh
+ am_funcs_file=plain-functions.sh
fi
-if test -f "$testsrcdir/$funcs_file_"; then
- . "$testsrcdir/$funcs_file_" || {
- echo "$me: error sourcing $testsrcdir/$funcs_file_" >&2
+if test -f "$testsrcdir/$am_funcs_file"; then
+ . "$testsrcdir/$am_funcs_file" || {
+ echo "$me: error sourcing $testsrcdir/$am_funcs_file" >&2
Exit 99
}
else
- echo "$me: $testsrcdir/$funcs_file_ not found, check \$testsrcdir" >&2
+ echo "$me: $testsrcdir/$am_funcs_file not found, check \$testsrcdir" >&2
Exit 99
fi
-unset funcs_file_
+unset am_funcs_file
# Avoid spurious TAP diagnostic. Keep this in sync with the definition
# of $(TAP_LOG_DRIVER_FLAGS) in `tests/Makefile.am'.
$AUTOMAKE ${1+"$@"} >stdout 2>stderr || am__got_rc=$?
cat stderr >&2
cat stdout
- if test $using_tap != yes; then
+ if test $am_using_tap != yes; then
test $am__got_rc -eq $am__exp_rc || Exit 1
return
fi
# get_shell_script SCRIPT-NAME
# -----------------------------
# Fetch an Automake-provided shell script from the `lib/' directory into
-# the current directory, and, if the `$test_prefer_config_shell' variable
-# is set to "yes", modify its shebang line to use $SHELL instead of
-# /bin/sh.
+# the current directory, and, if the `$am_test_prefer_config_shell'
+# variable is set to "yes", modify its shebang line to use $SHELL instead
+# of /bin/sh.
get_shell_script ()
{
- if test x"$test_prefer_config_shell" = x"yes"; then
+ if test x"$am_test_prefer_config_shell" = x"yes"; then
sed "1s|#!.*|#! $SHELL|" "$am_scriptdir/$1" > "$1"
chmod a+x "$1"
else
xsi-bin-sh)
require_xsi "/bin/sh";;
xsi-lib-shell)
- if test x"$test_prefer_config_shell" = x"yes"; then
+ if test x"$am_test_prefer_config_shell" = x"yes"; then
require_xsi "$SHELL"
else
require_xsi "/bin/sh"
else
keep_testdirs=no
fi
- if test $using_tap = yes; then
+ if test $am_using_tap = yes; then
if test $have_tap_plan_ != yes && test $exit_status -eq 0; then
plan_ "now"
fi
# to append AC_OUTPUT.
{
echo "AC_INIT([$me], [1.0])"
- if test x"$parallel_tests" = x"yes"; then
+ if test x"$am_parallel_tests" = x"yes"; then
echo "AM_INIT_AUTOMAKE([parallel-tests])"
else
echo "AM_INIT_AUTOMAKE"
for var in \
me \
required \
- using_tap \
- parallel_tests \
+ am_using_tap \
+ am_parallel_tests \
am_create_testdir \
am_tap_implementation \
- test_prefer_config_shell \
- original_AUTOMAKE \
- original_ACLOCAL \
+ am_test_prefer_config_shell \
+ am_original_AUTOMAKE \
+ am_original_ACLOCAL \
; do
if eval "test x\"\$$var\" != x" && env | grep "^$var=" >/dev/null; then
echo "$argv0: variable \`$var' is set in the environment:" \
# See whether the current test script is expected to use TAP or not.
# Use a sensible default, while allowing the scripts to override this
# check.
-if test -z "$using_tap"; then
- case $argv0 in *.tap) using_tap=yes;; *) using_tap=no;; esac
+if test -z "$am_using_tap"; then
+ case $argv0 in *.tap) am_using_tap=yes;; *) am_using_tap=no;; esac
fi
testsrcdir='@abs_srcdir@'
AUTOUPDATE=${AM_TESTSUITE_AUTOUPDATE-${AUTOUPDATE-'@am_AUTOUPDATE@'}}
# Tests who want complete control over aclocal or automake command-line
-# options should use $original_ACLOCAL or $original_AUTOMAKE. The
+# options should use $am_original_ACLOCAL or $am_original_AUTOMAKE. The
# `test -z' tests take care not to re-initialize them if defs-static
# is re-sourced, as we want defs-static to remain really idempotent.
-if test -z "$original_AUTOMAKE"; then
- original_AUTOMAKE=${AM_TESTSUITE_AUTOMAKE-${AUTOMAKE-"automake-$APIVERSION"}}
+if test -z "$am_original_AUTOMAKE"; then
+ am_original_AUTOMAKE=${AM_TESTSUITE_AUTOMAKE-${AUTOMAKE-"automake-$APIVERSION"}}
fi
-if test -z "$original_ACLOCAL"; then
- original_ACLOCAL=${AM_TESTSUITE_ACLOCAL-${ACLOCAL-"aclocal-$APIVERSION"}}
+if test -z "$am_original_ACLOCAL"; then
+ am_original_ACLOCAL=${AM_TESTSUITE_ACLOCAL-${ACLOCAL-"aclocal-$APIVERSION"}}
fi
# Use -Werror because this also turns some Perl warnings into error.
# Tests for which this is inappropriate should use -Wno-error.
# Tests who want complete control over aclocal command-line options
-# should use $original_ACLOCAL instead.
-ACLOCAL="$original_ACLOCAL -Werror"
+# should use $am_original_ACLOCAL instead.
+ACLOCAL="$am_original_ACLOCAL -Werror"
# See how Automake should be run. We put --foreign as the default
# strictness to avoid having to create lots and lots of files. A test
# testing that a warning is enabled by a specific switch) should use
# -Wnone or/and -Wno-error.
# Tests who want complete control over automake command-line options
-# should use $original_AUTOMAKE instead.
-AUTOMAKE="$original_AUTOMAKE --foreign -Werror -Wall"
+# should use $am_original_AUTOMAKE instead.
+AUTOMAKE="$am_original_AUTOMAKE --foreign -Werror -Wall"
# POSIX no longer requires 'egrep' and 'fgrep',
# but some hosts lack 'grep -E' and 'grep -F'.
TESTS = frob.test
END
-test x"$parallel_tests" != x"yes" || : > test-driver
+test x"$am_parallel_tests" != x"yes" || : > test-driver
$ACLOCAL
$AUTOMAKE
# Makefile.am generated by it define the TESTS variable.
#
# Individual tests can prevent the creation of such a sibling by
- # explicitly setting the `$parallel_tests' variable to either "yes"
+ # explicitly setting the `$am_parallel_tests' variable to either "yes"
# or "no". The rationale for this is that if the variable is set to
# "yes", the test already uses the `parallel-tests' option, so that
# a sibling would be just a duplicate; while if the variable is set
line_matcher =>
qr/(?:^|\s)TESTS\s*=/,
line_rejecter =>
- qr/(?:^[^#]*\bparallel-tests\b)|\bparallel_tests=/,
+ qr/(?:^[^#]*\bparallel-tests\b)|\bam_parallel_tests=/,
shell_setup_code =>
- 'parallel_tests=yes'
+ 'am_parallel_tests=yes'
},
#
# For each test script in the Automake testsuite that tests features
# the `get_shell_script' function anywhere.
#
# Individual tests can prevent the creation of such a sibling by
- # explicitly setting the `$test_prefer_config_shell' variable to
- # either "yes" or "no".
+ # explicitly setting the `$am_test_prefer_config_shell' variable
+ # to either "yes" or "no".
# The rationale for this is that if the variable is set to "yes",
# the test already uses $SHELL, so that a sibling would be just a
# duplicate; while if the variable is set to "no", the test doesn't
line_matcher =>
qr/(^|\s)get_shell_script\s/,
line_rejecter =>
- qr/\btest_prefer_config_shell=/,
+ qr/\bam_test_prefer_config_shell=/,
shell_setup_code =>
- 'test_prefer_config_shell=yes',
+ 'am_test_prefer_config_shell=yes',
},
#
# Tests on tap support should be run with both the perl and awk
. ./defs || Exit 1
# We need (almost) complete control over automake options.
-AUTOMAKE="$original_AUTOMAKE -Werror"
+AUTOMAKE="$am_original_AUTOMAKE -Werror"
cat >> configure.in << 'END'
AC_PROG_CC
# Honour user overrides for $ACLOCAL and $AUTOMAKE, but without
# adding extra options.
-ACLOCAL=$original_ACLOCAL
-AUTOMAKE=$original_AUTOMAKE
+ACLOCAL=$am_original_ACLOCAL
+AUTOMAKE=$am_original_AUTOMAKE
$ACLOCAL --version
$ACLOCAL --help
# Honour user overrides for $ACLOCAL and $AUTOMAKE, but without
# adding extra options.
-ACLOCAL=$original_ACLOCAL
-AUTOMAKE=$original_AUTOMAKE
+ACLOCAL=$am_original_ACLOCAL
+AUTOMAKE=$am_original_AUTOMAKE
echo '[' > configure.in
echo '[' > acinclude.m4
# Honour user overrides for $ACLOCAL and $AUTOMAKE, but without
# adding extra options.
-ACLOCAL=$original_ACLOCAL
-AUTOMAKE=$original_AUTOMAKE
+ACLOCAL=$am_original_ACLOCAL
+AUTOMAKE=$am_original_AUTOMAKE
cat > configure.in <<END
AC_INIT([$me], [1.0])
# Honour user overrides for $ACLOCAL and $AUTOMAKE, but without
# adding extra options.
-ACLOCAL=$original_ACLOCAL
-AUTOMAKE=$original_AUTOMAKE
+ACLOCAL=$am_original_ACLOCAL
+AUTOMAKE=$am_original_AUTOMAKE
escape_dots () { sed 's/\./\\./g'; } # Avoid issues with `\' in backquotes.
apiversion_rx=`echo "$APIVERSION" | escape_dots`
# Check that we can use indirections when overriding TESTS and
# TEST_LOGS from the command line.
-parallel_tests=yes
+am_parallel_tests=yes
. ./defs || Exit 1
cat >> configure.in << 'END'
# parallel-tests: some checks on console output about testsuite
# progress.
-parallel_tests=yes
+am_parallel_tests=yes
. ./defs || Exit 1
cat >> configure.in << 'END'
# Check that auxiliary script 'test-driver' gets automatically installed
# in the correct directory by 'parallel-tests' option.
-parallel_tests=yes
+am_parallel_tests=yes
. ./defs || Exit 1
: Try first with parallel-tests defined in AM_INIT_AUTOMAKE.
# Check `make -n' for testsuite-related targets, when `parallel-tests'
# is in use.
-parallel_tests=yes
+am_parallel_tests=yes
. ./defs || Exit 1
cat >> configure.in << 'END'
# - empty TESTS
# - empty TEST_LOGS
-parallel_tests=yes
+am_parallel_tests=yes
. ./defs || Exit 1
cat >> configure.in << 'END'
# Check parallel-tests features: normal and special exit statuses
# in the test scripts.
-parallel_tests=yes
+am_parallel_tests=yes
. ./defs || Exit 1
cat >> configure.in << 'END'
# (or even be) $(EXTRA_PROGRAMS).
required='cc native'
-parallel_tests=yes
+am_parallel_tests=yes
. ./defs || Exit 1
cat >> configure.in << 'END'
# See also the more generic test 'check-fd-redirect.test'.
required='cc native'
-parallel_tests=yes
+am_parallel_tests=yes
. ./defs || Exit 1
cat >> configure.in << 'END'
# - If $(TEST_SUITE_LOG) is in $(TEST_LOGS), we get a diagnosed
# error, not a make hang or a system freeze.
-parallel_tests=yes
+am_parallel_tests=yes
. ./defs || Exit 1
# The tricky part of this test is to avoid that make hangs or even
# Check parallel-tests features: DISABLE_HARD_ERRORS
-parallel_tests=yes
+am_parallel_tests=yes
. ./defs || Exit 1
cat >> configure.in << 'END'
# but we couldn't find a better way to deal with inter-processes
# signals and the whole process-synchronization mess.
-parallel_tests=yes
+am_parallel_tests=yes
. ./defs || Exit 1
plan_ 16
# and xxx_LOG_FLAGS), also with AC_SUBST'd stuff.
# See also related test 'parallel-tests-log-compiler-2.test'.
-parallel_tests=yes
+am_parallel_tests=yes
. ./defs || Exit 1
cat >> configure.in << 'END'
# and xxx_LOG_FLAGS), when some tests are PROGRAMS.
# See also related test 'parallel-tests-log-compiler-1.test'.
-parallel_tests=yes
+am_parallel_tests=yes
required='cc native'
. ./defs || Exit 1
# Test the example of usage of generic and extension-specific
# LOG_COMPILER and LOG_FLAGS given in the manual.
-parallel_tests=yes
+am_parallel_tests=yes
required=python
. ./defs || Exit 1
# Check parallel-tests features: runtime redefinition of $(TEST_SUITE_LOG).
-parallel_tests=yes
+am_parallel_tests=yes
. ./defs || Exit 1
cat >> configure.in <<'END'
# - $(TEST_SUITE_LOG) and $(TESTS)
# - $(TEST_SUITE_LOG) and $(TEST_LOGS)
-parallel_tests=yes
+am_parallel_tests=yes
. ./defs || Exit 1
cat >> configure.in <<'END'
# Check parallel-tests features: runtime redefinition of $(TEST_SUITE_LOG)
# for the recheck target.
-parallel_tests=yes
+am_parallel_tests=yes
. ./defs || Exit 1
cat >> configure.in <<'END'
# Colorized output from the testsuite report shouldn't end up in log files.
-parallel_tests=yes
+am_parallel_tests=yes
. ./defs || Exit 1
esc='\e'
# Check that `:test-results:' directives in test scripts' output doesn't
# originate spurious results in the testsuite summary.
-parallel_tests=yes
+am_parallel_tests=yes
. ./defs || Exit 1
cat >> configure.in << 'END'
# clean directory. An early implementation of the `.trs' intermediate
# files incurred a similar problem.
-parallel_tests=yes
+am_parallel_tests=yes
. ./defs || Exit 1
cat >> configure.in << 'END'
# Check that the parallel-tests driver correctly handle overrides of the
# TERM variable by either TESTS_ENVIRONMENT and AM_TESTS_ENVIRONMENT.
-parallel_tests=yes
+am_parallel_tests=yes
. ./defs || Exit 1
esc='\e['
# Check that the parallel-tests driver creates parent directories for
# the log files when needed.
-parallel_tests=yes
+am_parallel_tests=yes
. ./defs || Exit 1
cat >> configure.in << 'END'
# - suffix rules, with PROGRAMS involved
# See also sister test 'parallel-tests-suffix.test'.
-parallel_tests=yes
+am_parallel_tests=yes
required='cc native'
. ./defs || Exit 1
# - suffix rules
# See also sister test 'parallel-tests-suffix-prog.test'.
-parallel_tests=yes
+am_parallel_tests=yes
. ./defs || Exit 1
cat >> configure.in << 'END'
# Check that the testsuite driver copes well with unreadable `.log'
# and `.trs' files.
-parallel_tests=yes
+am_parallel_tests=yes
. ./defs || Exit 1
: > t
# - TEST_LOGS redefinition at runtime
# - RECHECK_LOGS redefinition at runtime
-parallel_tests=yes
+am_parallel_tests=yes
. ./defs || Exit 1
cat >> configure.in << 'END'
# - trailing whitespace in TESTS
# GNU make 3.80 may expand trailing white space to `.log'.
-parallel_tests=yes
+am_parallel_tests=yes
. ./defs || Exit 1
cat >> configure.in << 'END'
# - recheck-html
# Keep this in sync with sister test `test-driver-custom-html.test'.
-parallel_tests=yes
+am_parallel_tests=yes
required=rst2html
. ./defs || Exit 1
# Check parallel-tests features:
# - concurrent parallel execution
-parallel_tests=yes
+am_parallel_tests=yes
required=GNUmake
. ./defs || Exit 1
# Actually, this test doesn't ensure that things happen concurrently.
# It merely serves as demonstration. :-)
-parallel_tests=yes
+am_parallel_tests=yes
required='cc native GNUmake'
. ./defs || Exit 1
# BSD make will expand `$(TESTS:=.log)' to `.log' unless overridden.
# See parallel-tests10.test for a similar issue.
-parallel_tests=yes
+am_parallel_tests=yes
. ./defs || Exit 1
cat >> configure.in << 'END'
AC_OUTPUT
# manual for the ugliness in this area, when VPATH comes into
# play. :-/
-parallel_tests=yes
+am_parallel_tests=yes
. ./defs || Exit 1
cat >> configure.in << 'END'
# Check parallel-tests features:
# - recheck
-parallel_tests=yes
+am_parallel_tests=yes
. ./defs || Exit 1
cat >> configure.in << 'END'
# Check support for AC_CONFIG_LIBOBJ_DIR vs LIBOBJS.
# (pr401b.test and pr401c.test do the same for LTLIBOBJS and ALLOCA)
-parallel_tests=no
+am_parallel_tests=no
required=cc
. ./defs || Exit 1
# Check support for AC_CONFIG_LIBOBJ_DIR vs LTLIBOBJS.
# (pr401.test and pr401c.test do the same for LIBOBJS and ALLOCA)
-parallel_tests=no
+am_parallel_tests=no
required='cc libtoolize'
. ./defs || Exit 1
# Check support for AC_CONFIG_LIBOBJ_DIR vs ALLOCA.
# (pr401.test and pr401b.test do the same for LIBOBJS and LTLIBOBJS)
-parallel_tests=no
+am_parallel_tests=no
required=cc
. ./defs || Exit 1
vars='
me
- parallel_tests
required
- using_tap
+ am_parallel_tests
+ am_using_tap
am_create_testdir
am_tap_implementation
- test_prefer_config_shell
- original_AUTOMAKE
- original_ACLOCAL
+ am_test_prefer_config_shell
+ am_original_AUTOMAKE
+ am_original_ACLOCAL
'
do_run ()
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Sanity check for the automake testsuite.
-# Make sure that $using_tap gets automatically defined by `./defs-static',
-# but can be overridden by the individual tests.
+# Make sure that $am_using_tap gets automatically defined by
+# `./defs-static', but can be overridden by the individual tests.
. ./defs-static || exit 1
set -ex
-$SHELL -c '. ./defs-static && test $using_tap = yes' foo.tap
-$SHELL -c '. ./defs-static && test $using_tap = no' foo.test
-$SHELL -c '. ./defs-static && test $using_tap = no' tap
-$SHELL -c '. ./defs-static && test $using_tap = no' tap.test
-$SHELL -c '. ./defs-static && test $using_tap = no' foo-tap
+$SHELL -c '. ./defs-static && test $am_using_tap = yes' foo.tap
+$SHELL -c '. ./defs-static && test $am_using_tap = no' foo.test
+$SHELL -c '. ./defs-static && test $am_using_tap = no' tap
+$SHELL -c '. ./defs-static && test $am_using_tap = no' tap.test
+$SHELL -c '. ./defs-static && test $am_using_tap = no' foo-tap
-$SHELL -c 'using_tap=no; . ./defs-static; test $using_tap = no' foo.tap
-$SHELL -c 'using_tap=yes; . ./defs-static; test $using_tap = yes' foo.test
+$SHELL -c '
+ am_using_tap=no
+ . ./defs-static
+ test $am_using_tap = no
+' foo.tap
+
+$SHELL -c '
+ am_using_tap=yes
+ . ./defs-static
+ test $am_using_tap = yes
+' foo.test
:
. ./defs || Exit 1
# We want complete control over automake options.
-AUTOMAKE=$original_AUTOMAKE
+AUTOMAKE=$am_original_AUTOMAKE
cat > Makefile.am <<'END'
AUTOMAKE_OPTIONS =
. ./defs || Exit 1
# We want complete control over automake options.
-AUTOMAKE=$original_AUTOMAKE
+AUTOMAKE=$am_original_AUTOMAKE
cat > Makefile.am <<'END'
AUTOMAKE_OPTIONS =
# - handling of "ambiguous" TODO and SKIP directives
# See also related test 'tap-todo-skip-together.test'.
-parallel_tests=yes
+am_parallel_tests=yes
. ./defs || Exit 1
. "$testsrcdir"/tap-setup.sh || fatal_ "sourcing tap-setup.sh"
# - test results without number get automatically numbered in the
# console progress output
-parallel_tests=yes
+am_parallel_tests=yes
. ./defs || Exit 1
. "$testsrcdir"/tap-setup.sh || fatal_ "sourcing tap-setup.sh"
# - missing, unreadable, or not-executable test scripts cause proper
# error reports
-parallel_tests=yes
+am_parallel_tests=yes
. ./defs || Exit 1
plan_ 5
# - even after a "Bail out!" directive, all input is still copied in
# the log file
-parallel_tests=yes
+am_parallel_tests=yes
. ./defs || Exit 1
. "$testsrcdir"/tap-setup.sh || fatal_ "sourcing tap-setup.sh"
# - A "Bail out!" directive causes the driver to ignore the exit
# status of the test script.
-parallel_tests=yes
+am_parallel_tests=yes
. ./defs || Exit 1
tests='exit.test exit127.test sighup.test sigterm.test'
# - A "Bail out!" directive causes the driver to ignore any TAP
# diagnostic message in the rest of the following TAP stream.
-parallel_tests=yes
+am_parallel_tests=yes
. ./defs || Exit 1
. "$testsrcdir"/tap-setup.sh || fatal_ "sourcing tap-setup.sh"
# - A "Bail out!" directive causes the driver to ignore any TAP
# result or error in the rest of the following TAP stream.
-parallel_tests=yes
+am_parallel_tests=yes
. ./defs || Exit 1
. "$testsrcdir"/tap-setup.sh || fatal_ "sourcing tap-setup.sh"
# Basic TAP test protocol support:
# - "Bail out!" magic
-parallel_tests=yes
+am_parallel_tests=yes
. ./defs || Exit 1
. "$testsrcdir"/tap-setup.sh || fatal_ "sourcing tap-setup.sh"
# Note that some of the features checked here are checked in other
# test cases too, usually in a more thorough and detailed way.
-parallel_tests=yes
+am_parallel_tests=yes
. ./defs || Exit 1
fetch_tap_driver
# TAP support:
# - colorization of TAP results and diagnostic messages
-parallel_tests=yes
+am_parallel_tests=yes
. ./defs || Exit 1
TERM=ansi; export TERM
# Auxiliary test to set up common data used by many tests on TAP support.
-parallel_tests=yes
+am_parallel_tests=yes
. ./defs || Exit 1
cat >> configure.in << END
# Basic TAP test protocol support:
# - dependencies between test scripts
-parallel_tests=yes
+am_parallel_tests=yes
. ./defs || Exit 1
cat > Makefile.am << 'END'
# - option '--diagnostic-string' to customize the string introducing
# TAP diagnostics
-parallel_tests=yes
+am_parallel_tests=yes
. ./defs || Exit 1
fetch_tap_driver
# - diagnostic messages (TAP lines with leading "#")
# - flags '--comments' and '--no-comments' of the TAP test driver
-parallel_tests=yes
+am_parallel_tests=yes
. ./defs || Exit 1
. "$testsrcdir"/tap-setup.sh || fatal_ "sourcing tap-setup.sh"
# Check that an example given in the documentation really works.
# See section "Simple Tests" subsection "Script-based Testsuites".
-parallel_tests=yes
+am_parallel_tests=yes
. ./defs || Exit 1
fetch_tap_driver
# with the Automake test harness".
am_create_testdir=empty
-parallel_tests=yes
+am_parallel_tests=yes
. ./defs || Exit 1
cat > Makefile.am <<'END'
# - error messages from awk/shell/perl goes to the console
required=non-root
-parallel_tests=yes
+am_parallel_tests=yes
am_create_testdir=empty
. ./defs || Exit 1
# TAP support:
# - empty diagnostic messages are discarder
-parallel_tests=yes
+am_parallel_tests=yes
. ./defs || Exit 1
. "$testsrcdir"/tap-setup.sh || fatal_ "sourcing tap-setup.sh"
# - empty TAP input
# - blank TAP input
-parallel_tests=yes
+am_parallel_tests=yes
. ./defs || Exit 1
. "$testsrcdir"/tap-setup.sh || fatal_ "sourcing tap-setup.sh"
# TAP support:
# - "escape" TODO and SKIP directives (by escaping the "#" character)
-parallel_tests=yes
+am_parallel_tests=yes
. ./defs || Exit 1
. "$testsrcdir"/tap-setup.sh || fatal_ "sourcing tap-setup.sh"
# TAP support:
# - "escape" TODO and SKIP directives (by escaping the "#" character)
-parallel_tests=yes
+am_parallel_tests=yes
. ./defs || Exit 1
. "$testsrcdir"/tap-setup.sh || fatal_ "sourcing tap-setup.sh"
# - the `--ignore-exit' option causes the TAP test driver to ignore
# exit statuses of the test scripts.
-parallel_tests=yes
+am_parallel_tests=yes
. ./defs || Exit 1
echo TESTS = > Makefile.am
# TAP support: some unusual forms for valid TAP input.
# See also related test 'tap-fancy2.test'.
-parallel_tests=yes
+am_parallel_tests=yes
. ./defs || Exit 1
. "$testsrcdir"/tap-setup.sh || fatal_ "sourcing tap-setup.sh"
# TAP support: more unusual forms for valid TAP input.
# See also related test 'tap-fancy.test'.
-parallel_tests=yes
+am_parallel_tests=yes
. ./defs || Exit 1
. "$testsrcdir"/tap-setup.sh || fatal_ "sourcing tap-setup.sh"
# TAP support:
# - which log files get copied in the global log?
-parallel_tests=yes
+am_parallel_tests=yes
. ./defs || Exit 1
. "$testsrcdir"/tap-setup.sh || fatal_ "sourcing tap-setup.sh"
# - which global test result derives from different test results
# mixed in a single script?
-parallel_tests=yes
+am_parallel_tests=yes
. ./defs || Exit 1
. "$testsrcdir"/tap-setup.sh || fatal_ "sourcing tap-setup.sh"
# - "check-html" and "recheck-html" targets
# - reStructuredText -> HTML conversion
-parallel_tests=yes
+am_parallel_tests=yes
required=rst2html
. ./defs || Exit 1
# - VERBOSE environment variable support
# Keep in sync with 'test-log.test'.
-parallel_tests=yes
+am_parallel_tests=yes
. ./defs || Exit 1
cat > Makefile.am << 'END'
# - The Automake TAP driver has an option that instruct it to read TAP
# input also from the stderr of the test command, not only its stdout.
-parallel_tests=yes
+am_parallel_tests=yes
. ./defs || Exit 1
fetch_tap_driver
# plan, then the driver reports both "missing plan" and "exited with
# non-zero status" errors.
-parallel_tests=yes
+am_parallel_tests=yes
. ./defs || Exit 1
cat > foo.test <<END
# correct test script(s)
# - "make distcheck" works
-parallel_tests=yes
+am_parallel_tests=yes
. ./defs || Exit 1
fetch_tap_driver
# - interactions with `check_*' variables
required='cc native'
-parallel_tests=yes
+am_parallel_tests=yes
. ./defs || Exit 1
fetch_tap_driver
# of a "plan with skip" TAP plan
# generally true!
-parallel_tests=yes
+am_parallel_tests=yes
. ./defs || Exit 1
. "$testsrcdir"/tap-setup.sh || fatal_ "sourcing tap-setup.sh"
# TAP support:
# - literal string "0" as a TODO or SKIP message
-parallel_tests=yes
+am_parallel_tests=yes
. ./defs || Exit 1
. "$testsrcdir"/tap-setup.sh || fatal_ "sourcing tap-setup.sh"
# - literal "0" and "0.0" in a test description and a TODO/SKIP message
# at the same time
-parallel_tests=yes
+am_parallel_tests=yes
. ./defs || Exit 1
. "$testsrcdir"/tap-setup.sh || fatal_ "sourcing tap-setup.sh"
# - literal strings "0" and "0.0" as the reason of the skip in a "TAP
# plan with skip" (i.e., "1..0 # SKIP ...").
-parallel_tests=yes
+am_parallel_tests=yes
. ./defs || Exit 1
. "$testsrcdir"/tap-setup.sh || fatal_ "sourcing tap-setup.sh"
# TAP support:
# - the string "0" as a test description
-parallel_tests=yes
+am_parallel_tests=yes
. ./defs || Exit 1
. "$testsrcdir"/tap-setup.sh || fatal_ "sourcing tap-setup.sh"
# - don't spuriously recognize negative TAP result numbers, but correctly
# interpret them as test descriptions instead
-parallel_tests=yes
+am_parallel_tests=yes
. ./defs || Exit 1
. "$testsrcdir"/tap-setup.sh || fatal_ "sourcing tap-setup.sh"
# - "Bail out!" magic and TAP parse errors are not disabled nor turned
# into simple failures by the definition DISABLE_HARD_ERRORS.
-parallel_tests=yes
+am_parallel_tests=yes
. ./defs || Exit 1
cat > Makefile.am << 'END'
# - By default, TAP input is only from the stdout (and not the stderr)
# of the test command.
-parallel_tests=yes
+am_parallel_tests=yes
. ./defs || Exit 1
cat > Makefile.am << 'END'
# - we shouldn't spuriously recognize as TAP result numbers what it
# not, even if it seems pretty close
-parallel_tests=yes
+am_parallel_tests=yes
. ./defs || Exit 1
. "$testsrcdir"/tap-setup.sh || fatal_ "sourcing tap-setup.sh"
# - `:test-results:' directives in test scripts' output doesn't
# originate spurious results in the testsuite summary
-parallel_tests=yes
+am_parallel_tests=yes
. ./defs || Exit 1
. "$testsrcdir"/tap-setup.sh || fatal_ "sourcing tap-setup.sh"
# - don't spuriously recognize lines that are "almost" TAP lines as
# real TAP lines
-parallel_tests=yes
+am_parallel_tests=yes
. ./defs || Exit 1
. "$testsrcdir"/tap-setup.sh || fatal_ "sourcing tap-setup.sh"
# - a "not ok # SKIP" line should count as a failure, for consistency
# with the prove(1) utility.
-parallel_tests=yes
+am_parallel_tests=yes
. ./defs || Exit 1
. "$testsrcdir"/tap-setup.sh || fatal_ "sourcing tap-setup.sh"
# - TAP result numbers terminated by a non-whitespace "word boundary"
# character are recognized
-parallel_tests=yes
+am_parallel_tests=yes
. ./defs || Exit 1
. "$testsrcdir"/tap-setup.sh || fatal_ "sourcing tap-setup.sh"
# TAP support:
# - how does TAP result numbers with leading zero fares?
-parallel_tests=yes
+am_parallel_tests=yes
. ./defs || Exit 1
. "$testsrcdir"/tap-setup.sh || fatal_ "sourcing tap-setup.sh"
# TAP result lines whose description is a number.
-parallel_tests=yes
+am_parallel_tests=yes
. ./defs || Exit 1
. "$testsrcdir"/tap-setup.sh || fatal_ "sourcing tap-setup.sh"
# TAP support:
# - out-of-order test results
-parallel_tests=yes
+am_parallel_tests=yes
. ./defs || Exit 1
. "$testsrcdir"/tap-setup.sh || fatal_ "sourcing tap-setup.sh"
# log file
# See also related test 'tap-passthrough.test'.
-parallel_tests=yes
+am_parallel_tests=yes
. ./defs || Exit 1
cat > Makefile.am << 'END'
# - TAP errors are reported in the log file too
# See also related test 'tap-passthrough-exit.test'.
-parallel_tests=yes
+am_parallel_tests=yes
. ./defs || Exit 1
weirdchars=\''"\$@!&()[]<>#;,:.^?*/'
# TAP support:
# - some corner cases for TAP plan
-parallel_tests=yes
+am_parallel_tests=yes
. ./defs || Exit 1
. "$testsrcdir"/tap-setup.sh || fatal_ "sourcing tap-setup.sh"
# and 'tap-skip-whole-badcount.test'. More checks about corner-cases
# in TAP plans are performed in 'tap-plan-corner.test'.
-parallel_tests=yes
+am_parallel_tests=yes
. ./defs || Exit 1
. "$testsrcdir"/tap-setup.sh || fatal_ "sourcing tap-setup.sh"
# - TAP "SKIP" plans with multiple zeroes, as in "1..00 # SKIP"
# This is consistent with the behaviour of the `prove' utility.
-parallel_tests=yes
+am_parallel_tests=yes
. ./defs || Exit 1
. "$testsrcdir"/tap-setup.sh || fatal_ "sourcing tap-setup.sh"
# TAP support: a malformed TAP plan is not recognized. The checks in
# here should be consistent with the behaviour of the `prove' utility.
-parallel_tests=yes
+am_parallel_tests=yes
. ./defs || Exit 1
. "$testsrcdir"/tap-setup.sh || fatal_ "sourcing tap-setup.sh"
# TAP support:
# - test plan preceding and/or following non-result TAP lines
-parallel_tests=yes
+am_parallel_tests=yes
. ./defs || Exit 1
. "$testsrcdir"/tap-setup.sh || fatal_ "sourcing tap-setup.sh"
# TAP support:
# - plan line with trailing whitespace is recognized and handled correctly
-parallel_tests=yes
+am_parallel_tests=yes
. ./defs || Exit 1
. "$testsrcdir"/tap-setup.sh || fatal_ "sourcing tap-setup.sh"
# - test scripts with the test plan at the beginning
# - test scripts with the test plan at the end
-parallel_tests=yes
+am_parallel_tests=yes
. ./defs || Exit 1
. "$testsrcdir"/tap-setup.sh || fatal_ "sourcing tap-setup.sh"
# - interactions between "TAP plan with SKIP" and logging of earlier or
# later TAP or non-TAP text
-parallel_tests=yes
+am_parallel_tests=yes
. ./defs || Exit 1
. "$testsrcdir"/tap-setup.sh || fatal_ "sourcing tap-setup.sh"
# - an exit status != 0 of a test script causes an hard error, even if
# the last line of output is a "SKIP plan" (e.g., "1..0 # SKIP").
-parallel_tests=yes
+am_parallel_tests=yes
. ./defs || Exit 1
echo TESTS = one.test two.test > Makefile.am
# - a "Bail out!" directive causes an hard error, even if coming after
# a "SKIP plan" (e.g., "1..0 # SKIP").
-parallel_tests=yes
+am_parallel_tests=yes
. ./defs || Exit 1
. "$testsrcdir"/tap-setup.sh || fatal_ "sourcing tap-setup.sh"
# TAP support:
# - "SKIP" keyword in a TAP plan is case-insensitive
-parallel_tests=yes
+am_parallel_tests=yes
. ./defs || Exit 1
. "$testsrcdir"/tap-setup.sh || fatal_ "sourcing tap-setup.sh"
# - the special "plan with SKIP" can also be used "late" in the TAP
# stream, i.e., preceded by non-TAP output or TAP diagnostic.
-parallel_tests=yes
+am_parallel_tests=yes
. ./defs || Exit 1
. "$testsrcdir"/tap-setup.sh || fatal_ "sourcing tap-setup.sh"
# TAP support:
# - TAP errors following a "TAP plan with SKIP" are still diagnosed.
-parallel_tests=yes
+am_parallel_tests=yes
. ./defs || Exit 1
. "$testsrcdir"/tap-setup.sh || fatal_ "sourcing tap-setup.sh"
# - test results seen in a TAP stream that has a "plan with SKIP" are
# flagged as errors, even if all of them are "SKIP" results.
-parallel_tests=yes
+am_parallel_tests=yes
. ./defs || Exit 1
. "$testsrcdir"/tap-setup.sh || fatal_ "sourcing tap-setup.sh"
# been seen is an error
# - any test result following a "plan with skip" is an error.
-parallel_tests=yes
+am_parallel_tests=yes
. ./defs || Exit 1
. "$testsrcdir"/tap-setup.sh || fatal_ "sourcing tap-setup.sh"
# - normalization of whitespace in console testsuite progress associated
# with a SKIP directive in the TAP plan
-parallel_tests=yes
+am_parallel_tests=yes
. ./defs || Exit 1
. "$testsrcdir"/tap-setup.sh || fatal_ "sourcing tap-setup.sh"
# Basic TAP test protocol support:
# - special plan format to skip all the tests in a script
-parallel_tests=yes
+am_parallel_tests=yes
. ./defs || Exit 1
. "$testsrcdir"/tap-setup.sh || fatal_ "sourcing tap-setup.sh"
# children, and is pretty hacky and complex; is there a better way to
# accomplish the checks done here?
-parallel_tests=yes
+am_parallel_tests=yes
. ./defs || Exit 1
cat >expect-check <<'END'
# TAP support:
# - RECHECK_LOGS
-parallel_tests=yes
+am_parallel_tests=yes
. ./defs || Exit 1
cat > Makefile.am << 'END'
# Test the 'recheck' target for TAP test protocol.
# Keep in sync with 'test-driver-custom-multitest-recheck.test'.
-parallel_tests=yes
+am_parallel_tests=yes
. ./defs || Exit 1
fetch_tap_driver
# TAP support:
# - non-directive comments in TAP results are kept verbatim
-parallel_tests=yes
+am_parallel_tests=yes
. ./defs || Exit 1
. "$testsrcdir"/tap-setup.sh || fatal_ "sourcing tap-setup.sh"
# TAP support:
# - a test script terminated by a signal causes an hard error
-parallel_tests=yes
+am_parallel_tests=yes
. ./defs || Exit 1
plan_ 10
# Auxiliary script for tests on TAP support: checking testsuite summary.
-parallel_tests=yes
+am_parallel_tests=yes
. ./defs || Exit 1
br='============================================================================'
# - a test result numbered as 0 is to be considered out-of-order
# This is consistent with the behaviour of the `prove' utility.
-parallel_tests=yes
+am_parallel_tests=yes
. ./defs || Exit 1
if $PERL -w -e '
# - TODO and SKIP directives on the same line: the first one wins
# See also related test 'tap-ambiguous-directive.test'.
-parallel_tests=yes
+am_parallel_tests=yes
. ./defs || Exit 1
. "$testsrcdir"/tap-setup.sh || fatal_ "sourcing tap-setup.sh"
# - normalization of whitespace in console testsuite progress associated
# with TODO and SKIP directives
-parallel_tests=yes
+am_parallel_tests=yes
. ./defs || Exit 1
. "$testsrcdir"/tap-setup.sh || fatal_ "sourcing tap-setup.sh"
# - the reasons for TODO and SKIP, if present, are nicely printed in
# the testsuite progress output
-parallel_tests=yes
+am_parallel_tests=yes
. ./defs || Exit 1
. "$testsrcdir"/tap-setup.sh || fatal_ "sourcing tap-setup.sh"
# TAP support:
# - unplanned tests are properly reported as errors
-parallel_tests=yes
+am_parallel_tests=yes
. ./defs || Exit 1
. "$testsrcdir"/tap-setup.sh || fatal_ "sourcing tap-setup.sh"
# force us to tweak dozens of other tests (hopefully).
# See also related test 'tap-todo-skip-whitespace.test'.
-parallel_tests=yes
+am_parallel_tests=yes
. ./defs || Exit 1
cat > Makefile.am << 'END'
# - tests without explicit number get automatically numbered in the
# testsuite progress output on console
-parallel_tests=yes
+am_parallel_tests=yes
. ./defs || Exit 1
. "$testsrcdir"/tap-setup.sh || fatal_ "sourcing tap-setup.sh"
# TAP and $(XFAIL_TESTS): test results without directives are turned from
# PASS to XPASS and from FAIL to XFAIL; other results are unchanged.
-parallel_tests=yes
+am_parallel_tests=yes
. ./defs || Exit 1
. "$testsrcdir"/tap-setup.sh || fatal_ "sourcing tap-setup.sh"
# e.g., `sub/foo.log'), the Automake test harness must ensure that
# directory exists before calling any custom test driver.
-parallel_tests=yes
+am_parallel_tests=yes
. ./defs || Exit 1
cat >> configure.in << 'END'
# - recheck-html
# Keep this in sync with sister test `parallel-tests2.test'.
-parallel_tests=yes
+am_parallel_tests=yes
required=rst2html
. ./defs || Exit 1
# and `parallel-tests-recheck-override.test'.
# Keep in sync with 'tap-recheck.test'.
-parallel_tests=yes
+am_parallel_tests=yes
. ./defs || Exit 1
cp "$testsrcdir"/trivial-test-driver . \
# See also related tests `test-driver-custom-multitest-recheck.test' and
# `parallel-tests-recheck-override.test'.
-parallel_tests=yes
+am_parallel_tests=yes
. ./defs || Exit 1
cp "$testsrcdir"/trivial-test-driver . \
# only checks implementation details in Automake's custom test drivers
# support, but also serves as a "usability test" for our APIs.
-parallel_tests=yes
+am_parallel_tests=yes
. ./defs || Exit 1
cp "$testsrcdir"/trivial-test-driver . \
# installed or referenced if it's not used, i.e., if the user has
# defined his own `*LOG_DRIVER' variables.
-parallel_tests=yes
+am_parallel_tests=yes
. ./defs || Exit 1
cat >> configure.in <<'END'
# for drivers that are not interested to support the .log -> HTML
# conversion offered by Automake.
-parallel_tests=yes
+am_parallel_tests=yes
. ./defs || Exit 1
cat >> configure.in << 'END'
# Custom test drivers: "abstract" XFAIL_TESTS support.
-parallel_tests=yes
+am_parallel_tests=yes
. ./defs || Exit 1
cat >> configure.in <<'END'
# Custom test drivers: per-extension test drivers.
-parallel_tests=yes
+am_parallel_tests=yes
. ./defs || Exit 1
cat >> configure.in << 'END'
# (like our dummy one in this test) might leave around a test log even
# in case of internal failures.
-parallel_tests=yes
+am_parallel_tests=yes
. ./defs || Exit 1
cat >> configure.in <<'END'
# Custom test drivers: check that the test name passed to the test
# driver has any VPATH prefix stripped.
-parallel_tests=yes
+am_parallel_tests=yes
. ./defs || Exit 1
ocwd=`pwd` || fatal_ "cannot get current working directory"
# - .test if $(TEST_EXTENSIONS) is not defined
# - stuff in $(TEST_EXTENSIONS) otherwise
-parallel_tests=yes
+am_parallel_tests=yes
. ./defs || Exit 1
: > Makefile.am
# Check that our concurrent test harness is not subject to spurious VPATH
# rewrites.
-parallel_tests=yes
+am_parallel_tests=yes
. ./defs || Exit 1
cat >> configure.in << 'END'
# - VERBOSE environment variable support
# Keep in sync with 'tap-log.test'.
-parallel_tests=yes
+am_parallel_tests=yes
. ./defs || Exit 1
cat >> configure.in <<END
# different test scripts don't end up sharing the same log file.
# (Automake itself is such a project, BTW ;-)
-parallel_tests=yes
+am_parallel_tests=yes
. ./defs || Exit 1
cat >> configure.in <<END
# with the use of the reStructuredText field `:copy-in-global-log:' in
# the associated `.trs' files.
-parallel_tests=yes
+am_parallel_tests=yes
. ./defs || Exit 1
cat >> configure.in << 'END'
# "global test result" in `*.trs' files, as documented in the automake
# manual.
-parallel_tests=yes
+am_parallel_tests=yes
. ./defs || Exit 1
cat >> configure.in << 'END'
# Test the "make recheck" semantics for custom test drivers, as documented
# in the Automake manual.
-parallel_tests=yes
+am_parallel_tests=yes
. ./defs || Exit 1
cat >> configure.in << 'END'
# Parallel testsuite harness: check APIs for the registering of test
# results in `*.trs' files, as documented in the automake manual.
-parallel_tests=yes
+am_parallel_tests=yes
. ./defs || Exit 1
cat >> configure.in << 'END'
# - non-existent scripts listed in TESTS get diagnosed
# See also related test 'test-missing2.test'.
-parallel_tests=yes
+am_parallel_tests=yes
. ./defs || Exit 1
cat >> configure.in << 'END'
# all the $(TEST_LOGS) have a dummy dependency.
# See also related test 'test-missing.test'.
-parallel_tests=yes
+am_parallel_tests=yes
. ./defs || Exit 1
cat >> configure.in << 'END'
# - creation and removal of `.trs' auxiliary files
# - check some internals regarding the use of `.trs' files.
-parallel_tests=yes
+am_parallel_tests=yes
. ./defs || Exit 1
cat >> configure.in <<END
# This test is complex and tricky, but that's acceptable since we are
# testing semantics that are potentially complex and tricky.
-parallel_tests=yes
+am_parallel_tests=yes
. ./defs || Exit 1
cat >> configure.in <<END
# Check parallel harness features:
# - recovery from unreadable `.trs' files, in various scenarios
-parallel_tests=yes
+am_parallel_tests=yes
. ./defs || Exit 1
cat >> configure.in <<END
# by TESTS_ENVIRONMENT and AM_TESTS_ENVIRONMENT in LOG_COMPILER and
# LOG_FLAGS (for tests both with and without registered extensions).
-parallel_tests=yes
+am_parallel_tests=yes
. ./defs || Exit 1
cat >> configure.in << 'END'
# be run by (with the parallel-tests driver one should use LOG_COMPILER
# for this). The behaviour tested here is also documented in the manual.
-parallel_tests=no
+am_parallel_tests=no
. ./defs || Exit 1
cat >> configure.in <<END
# and the following CC:ed thread on bug-autoconf list:
# <http://lists.gnu.org/archive/html/bug-autoconf/2011-06/msg00002.html>
-parallel_tests=yes
+am_parallel_tests=yes
. ./defs || Exit 1
cat >> configure.in << 'END'
# testsuite output, packages with and without bug-report addresses,
# testsuites in subdirectories, ...)
-parallel_tests=yes
+am_parallel_tests=yes
. ./defs || Exit 1
case $use_colors in
# Incidentally, this test also checks that the testsuite summary doesn't
# give any bug-report address if it's not defined.
-parallel_tests=yes
+am_parallel_tests=yes
. ./defs || Exit 1
for s in trivial-test-driver extract-testsuite-summary; do
# Check that the global testsuite log file referenced in the testsuite
# summary and in the global testsuite log itself is correct.
-parallel_tests=yes
+am_parallel_tests=yes
. ./defs || Exit 1
mv configure.in configure.stub
. ./defs || Exit 1
# We want complete control over automake options.
-AUTOMAKE=$original_AUTOMAKE
+AUTOMAKE=$am_original_AUTOMAKE
# Files required in gnu and/or gnits strictness.
touch README INSTALL NEWS AUTHORS ChangeLog COPYING THANKS
. ./defs || Exit 1
# We want (almost) complete control over automake options.
-AUTOMAKE="$original_AUTOMAKE -Werror"
+AUTOMAKE="$am_original_AUTOMAKE -Werror"
cat > Makefile.am <<'END'
FOO := bar
. ./defs || Exit 1
# We want (almost) complete control over automake options.
-AUTOMAKE="$original_AUTOMAKE -Werror"
+AUTOMAKE="$am_original_AUTOMAKE -Werror"
cat > Makefile.am <<'END'
FOO := bar
. ./defs || Exit 1
# We want (almost) complete control over automake options.
-AUTOMAKE="$original_AUTOMAKE -Werror"
+AUTOMAKE="$am_original_AUTOMAKE -Werror"
cat > Makefile.am <<END
AUTOMAKE_OPTIONS =
. ./defs || Exit 1
# We want (almost) complete control over automake options.
-AUTOMAKE="$original_AUTOMAKE --foreign -Werror"
+AUTOMAKE="$am_original_AUTOMAKE --foreign -Werror"
cat > configure.in <<END
AC_INIT([$me], [1.0])
. ./defs || Exit 1
# We want complete control over automake options.
-AUTOMAKE=$original_AUTOMAKE
+AUTOMAKE=$am_original_AUTOMAKE
ok ()
{