me \
required \
am_using_tap \
- am_parallel_tests \
+ am_serial_tests \
am_test_prefer_config_shell \
am_original_AUTOMAKE \
am_original_ACLOCAL \
# to append AC_OUTPUT.
{
echo "AC_INIT([$me], [1.0])"
- if test x"$am_parallel_tests" = x"yes"; then
- echo "AM_INIT_AUTOMAKE([parallel-tests])"
- else
+ if test x"$am_serial_tests" = x"yes"; then
echo "AM_INIT_AUTOMAKE"
+ else
+ echo "AM_INIT_AUTOMAKE([parallel-tests])"
fi
echo "AC_CONFIG_FILES([Makefile])"
} >configure.ac || framework_failure_ "creating configure.ac skeleton"
me \
required \
am_using_tap \
- am_parallel_tests \
+ am_serial_tests \
am_create_testdir \
am_tap_implementation \
am_test_prefer_config_shell \
my %test_generators =
(
#
- # For each test script in the Automake testsuite that itself tests
- # features of the TESTS automake interface, define a sibling test
- # that does likewise, but with the option 'parallel-tests' enabled.
+ # Any test script in the Automake testsuite that checks features of
+ # the Automake-provided parallel testsuite harness might want to
+ # define a sibling test that does similar checks, but for the old
+ # serial testsuite harness instead.
#
- # A test is considered a candidate for sibling-generation if any
- # Makefile.am generated by it define the TESTS variable.
+ # Individual tests can request the creation of such a sibling by
+ # making the string "try-with-serial-tests" appear any line of the
+ # test itself.
#
- # Individual tests can prevent the creation of such a sibling by
- # 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
- # to "no", the test doesn't support, or is not meant to run with, the
- # 'parallel-tests' option, and forcing it to do so in the sibling
- # would likely cause a spurious failure.
- #
- parallel_testsuite_harness =>
+ serial_testsuite_harness =>
{
- line_matcher =>
- qr/(?:^|\s)TESTS\s*=/,
- line_rejecter =>
- qr/(?:^[^#]*\bparallel-tests\b)|\bam_parallel_tests=/,
- shell_setup_code =>
- 'am_parallel_tests=yes'
+ line_matcher => qr/\btry-with-serial-tests\b/,
+ shell_setup_code => 'am_serial_tests=yes',
},
#
# For each test script in the Automake testsuite that tests features
{
my @wrapped_tests = grep {
line_match ($g->{line_matcher}, $_)
- && !line_match ($g->{line_rejecter}, $_)
+ && (!$g->{line_rejecter} || !line_match ($g->{line_rejecter}, $_))
} @all_tests;
foreach my $wrapped_test (@wrapped_tests)
{
sc_tests_obsolete_variables:
@vars=" \
using_tap \
- parallel_tests \
test_prefer_config_shell \
original_AUTOMAKE \
original_ACLOCAL \
+ parallel_tests \
+ am_parallel_tests \
"; \
seen=""; \
for v in $$vars; do \
done; \
if test -n "$$seen"; then \
for v in $$seen; do \
- echo "Variable '$$v' is obsolete, use 'am_$$v' instead." 1>&2; \
+ case $$v in \
+ parallel_tests|am_parallel_tests) v2=am_serial_tests;; \
+ *) v2=am_$$v;; \
+ esac; \
+ echo "Variable '$$v' is obsolete, use '$$v2' instead." 1>&2; \
done; \
exit 1; \
else :; fi
set-up of a test scenario, you can use the 'framework_fail_' function
instead.
- For tests that use the 'parallel-tests' Automake option, set the shell
- 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
- 'am_parallel_tests' to "no" before including ./defs.
+ For those tests checking the Automake-provided test harnesses that are
+ expected to work also when the 'serial-tests' Automake option is used
+ (thus causing the serial testsuite harness to be used in the generated
+ Makefile), place a line containing "try-with-serial-tests" somewhere
+ in the file. That will ensure that the 'gen-testsuite-part' script
+ generates a sibling of that test which uses the serial harness instead
+ of the parallel one. For those tests that are *not* meant to work with
+ the parallel testsuite harness at all (these should be very very few),
+ set the shell variable 'am_serial_tests' to "yes" before including
+ ./defs.
Some tests in the Automake testsuite are auto-generated; those tests
might have custom extensions, but their basename (that is, with such
# parallel-tests: check AM_TESTS_ENVIRONMENT support, and its
# interactions with TESTS_ENVIRONMENT.
-am_parallel_tests=yes
. ./defs || Exit 1
cat >> configure.ac << 'END'
# Auxiliary script for tests on TAP support: checking testsuite summary.
-am_parallel_tests=yes
. ./defs || Exit 1
br='============================================================================'
# testsuite output, packages with and without bug-report addresses,
# testsuites in subdirectories, ...)
-am_parallel_tests=yes
. ./defs || Exit 1
case $use_colors in
# This script can also serve as mild stress-testing for Automake.
# See also the similar test 'backcompat6.test'.
-am_parallel_tests=no
+am_serial_tests=yes
am_create_testdir=empty
. ./defs || Exit 1
for j in '' -j1 -j2; do
$MAKE $j check && Exit 1
TESTS=foo.test $MAKE $j -e check && Exit 1
- 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
- $MAKE $j test-suite.log && Exit 1
- test -f test-suite.log || Exit 1
- else
- : # For shells with buggy 'set -e'.
- fi
+ $MAKE $j recheck && Exit 1
+ TEST_LOGS=foo.log $MAKE $j -e check && Exit 1
+ rm -f test-suite.log
+ $MAKE $j test-suite.log && Exit 1
+ test -f test-suite.log || Exit 1
done
:
# parallel-tests option enabled) exports the 'srcdir' value in the
# environment of the tests. This is documented in the manual.
+# For gen-testsuite-part: ==> try-with-serial-tests <==
. ./defs || Exit 1
show_info ()
{
- if test x"$am_parallel_tests" = x"yes"; then
+ if test x"$am_serial_tests" != x"yes"; then
cat foo.log
cat test-suite.log
else
# AM_TESTS_FD_REDIRECT.
# See also related test 'parallel-tests-fd-redirect.test'.
+# For gen-testsuite-part: ==> try-with-serial-tests <==
. ./defs || Exit 1
cat >> configure.ac << 'END'
cat stdout
cat stderr >&2
cat four
- test x"$am_parallel_tests" != x"yes" || cat foo.log
+ test x"$am_serial_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.
-am_parallel_tests=no
+am_serial_tests=yes
. ./defs || Exit 1
echo 'TESTS = foo.test' > Makefile.am
# Check @substituted@ TESTS, some of which are also PROGRAMS.
# See also sister test 'check-subst.test'.
+# For gen-testsuite-part: ==> try-with-serial-tests <==
required='cc native'
. ./defs || Exit 1
# substituted names: this is necessary for parallel-tests.
# See also sister test 'check-subst-prog.test'.
+# For gen-testsuite-part: ==> try-with-serial-tests <==
. ./defs || Exit 1
cat >> configure.ac << 'END'
XFAIL_TESTS = @xfail_tests@
END
-if test "$am_parallel_tests" = yes; then
+if test x"$am_serial_tests" != x"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 "$am_parallel_tests" != yes; then
+if test x"$am_serial_tests" = x"yes"; then
chmod a+x subst-pass-script.sh subst-xfail-script.sh
fi
$srcdir/configure
$MAKE all
$MAKE check
- if test "$am_parallel_tests" = yes; then
+ if test x"$am_serial_tests" != x"yes"; then
ls -l
test -f pass-script.log
test -f xfail-script.log
# Check that the testsuite driver can find test in the srcdir as
# well as in builddir, and that is prefers those in the builddir.
+# For gen-testsuite-part: ==> try-with-serial-tests <==
. ./defs || Exit 1
cat >> configure.ac << 'END'
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"$am_parallel_tests" = x"yes"; then
- grep '\.\./foo' out && Exit 1
- grep '^PASS: foo.test *$' out
+if test x"$am_serial_tests" = x"yes"; then
+ grep '^PASS: .*foo\.test *$' out
else
- grep '^PASS: .*foo.test *$' out
+ grep '\.\./foo' out && Exit 1
+ grep '^PASS: foo\.test *$' out
fi
-grep '^PASS: bar.test *$' out
+grep '^PASS: bar\.test *$' out
rm -f test-suite.log foo.log bar.log
FOO_EXIT_STATUS=1 $MAKE check >out 2>&1 && { cat out; Exit1; }
cat out
-# See comments above.
-if test x"$am_parallel_tests" = x"yes"; then
- grep '\.\./foo' out && Exit 1
- grep '^FAIL: foo.test *$' 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"$am_serial_tests" = x"yes"; then
+ grep '^FAIL: .*foo\.test *$' out
else
- grep '^FAIL: .*foo.test *$' out
+ grep '\.\./foo' out && Exit 1
+ grep '^FAIL: foo\.test *$' out
fi
-grep '^PASS: bar.test *$' out
+grep '^PASS: bar\.test *$' out
rm -f test-suite.log foo.log bar.log
cp bar.test foo.test
FOO_EXIT_STATUS=1 $MAKE check >out 2>&1 || { cat out; Exit1; }
cat out
-grep '^PASS: foo.test *$' out
-grep '^PASS: bar.test *$' out
+grep '^PASS: foo\.test *$' out
+grep '^PASS: bar\.test *$' out
# The tests in the builddir must be preferred also by "make dist".
FOO_EXIT_STATUS=1 $MAKE distcheck
# Test Automake style tests.
+# For gen-testsuite-part: ==> try-with-serial-tests <==
. ./defs || Exit 1
cat > Makefile.am << 'END'
TESTS = frob.test
END
-test x"$am_parallel_tests" != x"yes" || : > test-driver
-
-: > frob.test
+test x"$am_serial_tests" = x"yes" || : > test-driver
$ACLOCAL
$AUTOMAKE
# Check singular and plural in test summaries.
# This test only makes sense for the older serial testsuite driver.
-am_parallel_tests=no
+am_serial_tests=yes
. ./defs || Exit 1
cat >> configure.ac << 'END'
# Check skip summary.
+# For gen-testsuite-part: ==> try-with-serial-tests <==
. ./defs || Exit 1
cat >> configure.ac << 'END'
env TESTS=skip $MAKE -e check >stdout || { cat stdout; Exit 1; }
cat stdout
-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
+if test x"$am_serial_tests" = x"yes"; then
grep '1.*passed' stdout && Exit 1
: For shells with buggy 'set -e'.
+else
+ count_test_results total=1 pass=0 fail=0 skip=1 xfail=0 xpass=0 error=0
fi
env TESTS="skip skip2" $MAKE -e check >stdout || { cat stdout; Exit 1; }
cat stdout
-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
+if test x"$am_serial_tests" = x"yes"; then
grep '2.*passed' stdout && Exit 1
: For shells with buggy 'set -e'.
+else
+ count_test_results total=2 pass=0 fail=0 skip=2 xfail=0 xpass=0 error=0
fi
:
# Test to make sure dejagnu tests, automake-style tests, and check-local
# target can coexist.
+# For gen-testsuite-part: ==> try-with-serial-tests <==
required=runtest
. ./defs || Exit 1
if $vpath; then
srcdir=..
- mkdir build_
- cd build_
+ mkdir build
+ cd build
else
srcdir=.
fi
test -f spanner.log
test -f spanner.sum
# This checks will be run only by the autogenerated 'check12-p.test'.
- if test x"$am_parallel_tests" = x"yes"; then
+ if test x"$am_serial_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"$am_parallel_tests" = x"yes"; then
+ if test x"$am_serial_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"$am_parallel_tests" = x"yes"; then
+ if test x"$am_serial_tests" != x"yes"; then
cat test-suite.log
cat a.log
cat b.log
# Test Automake style tests.
+# For gen-testsuite-part: ==> try-with-serial-tests <==
. ./defs || Exit 1
cat >> configure.ac << 'END'
CLEANFILES = echo.sh
END
-if test x"$am_parallel_tests" = x"yes"; then
- cp "$am_scriptdir/test-driver" .
-fi
+test x"$am_serial_tests" = x"yes" || cp "$am_scriptdir/test-driver" .
$ACLOCAL
$AUTOCONF
# Make sure 'check:' and 'install:' honor $(BUILT_SOURCES).
# PR/359.
+# For gen-testsuite-part: ==> try-with-serial-tests <==
. ./defs || Exit 1
cat >> configure.ac << 'END'
# Make sure 'make -k check' processes all directories.
+# For gen-testsuite-part: ==> try-with-serial-tests <==
. ./defs || Exit 1
cat >> configure.ac << 'END'
# Test TESTS = $(check_PROGRAMS)
+# For gen-testsuite-part: ==> try-with-serial-tests <==
required='cc native'
. ./defs || Exit 1
# Test for PR 400: XFAIL_TESTS delimited by TABs.
# Also test that Solaris make VPATH rewriting is honored
+# For gen-testsuite-part: ==> try-with-serial-tests <==
. ./defs || Exit 1
cat >> configure.ac << 'END'
# Check EXEEXT extension for XFAIL_TESTS.
+# For gen-testsuite-part: ==> try-with-serial-tests <==
required=cc
. ./defs || Exit 1
# Check subdir TESTS.
+# For gen-testsuite-part: ==> try-with-serial-tests <==
required='cc native'
. ./defs || Exit 1
# Test Automake TESTS color output, by forcing it.
# Keep this in sync with the sister test 'color2.test'.
+# For gen-testsuite-part: ==> try-with-serial-tests <==
. ./defs || Exit 1
esc='\e'
cat stdout | grep "^${red}XPASS${std}: .*xpass"
# The old serial testsuite driver doesn't distinguish between failures
# and hard errors.
- if test x"$am_parallel_tests" = x"yes"; then
- cat stdout | grep "^${mgn}ERROR${std}: .*error"
- else
+ if test x"$am_serial_tests" = x"yes"; then
cat stdout | grep "^${red}FAIL${std}: .*error"
+ else
+ cat stdout | grep "^${mgn}ERROR${std}: .*error"
fi
:
}
# Test Automake TESTS color output, using the expect(1) program.
# Keep this in sync with the sister test 'color.test'.
+# For gen-testsuite-part: ==> try-with-serial-tests <==
. ./defs || Exit 1
esc='\e'
cat stdout | grep "^${red}XPASS${std}: .*xpass"
# The old serial testsuite driver doesn't distinguish between failures
# and hard errors.
- if test x"$am_parallel_tests" = x"yes"; then
- cat stdout | grep "^${mgn}ERROR${std}: .*error"
- else
+ if test x"$am_serial_tests" = x"yes"; then
cat stdout | grep "^${red}FAIL${std}: .*error"
+ else
+ cat stdout | grep "^${mgn}ERROR${std}: .*error"
fi
:
}
# Try again, this time enabling cygnus mode from configure.ac.
cp configure.ac configure.sav
-sed 's/^AM_INIT_AUTOMAKE$/&([gnits cygnus])/' configure.sav >configure.ac
+sed 's/^AM_INIT_AUTOMAKE/&([gnits cygnus])/' configure.sav >configure.ac
cmp configure.ac configure.sav && fatal_ 'failed to edit configure.ac'
$ACLOCAL --force
TESTS = frob.test
END
-test x"$am_parallel_tests" != x"yes" || : > test-driver
+test x"$am_serial_tests" = x"yes" || : > test-driver
$ACLOCAL
$AUTOMAKE
# same config-aux files.
am_create_testdir=empty
-am_parallel_tests=yes
required=cc
. ./defs || Exit 1
# by a process (e.g., that is its "current working directory").
# See automake bug#10470.
-am_parallel_tests=no
. ./defs || Exit 1
mkdir foo.d
# Make sure $(EXEEXT) is appended to programs and to tests that are
# programs, but not to @substitutions@.
+# For gen-testsuite-part: ==> try-with-serial-tests <==
. ./defs || Exit 1
cat >> configure.ac << 'END'
# 'parallel-tests' driver.
required='java javac'
-am_parallel_tests=no
+am_serial_tests=yes
. ./defs || Exit 1
echo "AC_SUBST([PATH_SEPARATOR], ['$PATH_SEPARATOR'])" >> configure.ac
# of the older non-parallel 'simple-tests' driver.
required='java javac'
-am_parallel_tests=yes
. ./defs || Exit 1
echo "AC_SUBST([PATH_SEPARATOR], ['$PATH_SEPARATOR'])" >> configure.ac
# Check that $(am__make_dryrun) works as expected.
-am_parallel_tests=yes # Avoid generation of a useless wrapper test.
. ./defs || Exit 1
plan_ 14
# This test exercises the GCS-mandated targets (except for dist)
# as well as tags, TAGS.
+# For gen-testsuite-part: ==> try-with-serial-tests <==
. ./defs || Exit 1
# Does $MAKE support the '.MAKE' special target?
# Check that we can use indirections when overriding TESTS and
# TEST_LOGS from the command line.
-am_parallel_tests=yes
. ./defs || Exit 1
cat >> configure.ac << 'END'
# parallel-tests: some checks on console output about testsuite
# progress.
-am_parallel_tests=yes
. ./defs || Exit 1
cat >> configure.ac << 'END'
# Check that auxiliary script 'test-driver' gets automatically installed
# in the correct directory by 'parallel-tests' option.
-am_parallel_tests=yes
. ./defs || Exit 1
: Try first with parallel-tests defined in AM_INIT_AUTOMAKE.
# Check parallel-tests interactions with "make -n".
# See also sister test 'parallel-tests-dry-run-2.test'.
-am_parallel_tests=yes
. ./defs || Exit 1
echo AC_OUTPUT >> configure.ac
# Check parallel-tests interactions with "make -n".
# See also sister test 'parallel-tests-dry-run-1.test'.
-am_parallel_tests=yes
. ./defs || Exit 1
cat >> configure.ac << 'END'
# - empty TESTS
# - empty TEST_LOGS
-am_parallel_tests=yes
. ./defs || Exit 1
cat >> configure.ac << 'END'
# parallel-tests:
# - check2.am and interaction with $(EXEEXT)
-am_parallel_tests=yes
. ./defs || Exit 1
cat >> configure.ac << 'END'
# Check parallel-tests features: normal and special exit statuses
# in the test scripts.
-am_parallel_tests=yes
. ./defs || Exit 1
cat >> configure.ac << 'END'
# (or even be) $(EXTRA_PROGRAMS).
required='cc native'
-am_parallel_tests=yes
. ./defs || Exit 1
cat >> configure.ac << 'END'
# sister test 'parallel-tests-fd-redirect.test'.
required='cc native'
-am_parallel_tests=yes
. ./defs || Exit 1
cat >> configure.ac << 'END'
# check for tests that are binary executables.
# See also the more generic test 'check-fd-redirect.test'.
-am_parallel_tests=yes
. ./defs || Exit 1
cat >> configure.ac << 'END'
# - If $(TEST_SUITE_LOG) is in $(TEST_LOGS), we get a diagnosed
# error, not a make hang or a system freeze.
-am_parallel_tests=yes
. ./defs || Exit 1
# We don't want localized error messages from make, since we'll have
# Check parallel-tests features: DISABLE_HARD_ERRORS
-am_parallel_tests=yes
. ./defs || Exit 1
cat >> configure.ac << 'END'
# but we couldn't find a better way to deal with inter-processes
# signals and the whole process-synchronization mess.
-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'.
-am_parallel_tests=yes
. ./defs || Exit 1
cat >> configure.ac << 'END'
# and xxx_LOG_FLAGS), when some tests are PROGRAMS.
# See also related test 'parallel-tests-log-compiler-1.test'.
-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.
-am_parallel_tests=yes
required=python
. ./defs || Exit 1
# Check parallel-tests features: runtime redefinition of $(TEST_SUITE_LOG).
-am_parallel_tests=yes
. ./defs || Exit 1
cat >> configure.ac <<'END'
# - $(TEST_SUITE_LOG) and $(TESTS)
# - $(TEST_SUITE_LOG) and $(TEST_LOGS)
-am_parallel_tests=yes
. ./defs || Exit 1
cat >> configure.ac <<'END'
# Check parallel-tests features: runtime redefinition of $(TEST_SUITE_LOG)
# for the recheck target.
-am_parallel_tests=yes
. ./defs || Exit 1
cat >> configure.ac <<'END'
# an exceeded command line length when there are many tests.
# For automake bug#7868. This test is currently expected to fail.
-am_parallel_tests=yes
. ./defs || Exit 1
cat >> configure.ac << 'END'
# Colorized output from the testsuite report shouldn't end up in log files.
-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.
-am_parallel_tests=yes
. ./defs || Exit 1
cat >> configure.ac << 'END'
# clean directory. An early implementation of the '.trs' intermediate
# files incurred a similar problem.
-am_parallel_tests=yes
. ./defs || Exit 1
cat >> configure.ac << 'END'
# The parallel-tests 'recheck' target must depend on the 'all' target.
# See automake bug#11252.
-am_parallel_tests=yes
required='cc native'
. ./defs || Exit 1
# Check that the parallel-tests driver correctly handle overrides of the
# TERM variable by either TESTS_ENVIRONMENT and AM_TESTS_ENVIRONMENT.
-am_parallel_tests=yes
. ./defs || Exit 1
esc='\e['
# Check that the parallel-tests driver creates parent directories for
# the log files when needed.
-am_parallel_tests=yes
. ./defs || Exit 1
cat >> configure.ac << 'END'
# - suffix rules, with PROGRAMS involved
# See also sister test 'parallel-tests-suffix.test'.
-am_parallel_tests=yes
required='cc native'
. ./defs || Exit 1
# - suffix rules
# See also sister test 'parallel-tests-suffix-prog.test'.
-am_parallel_tests=yes
. ./defs || Exit 1
cat >> configure.ac << 'END'
# older bash versions (e.g., bash 2.05b).
# See automake bug#10436.
-am_parallel_tests=yes
. ./defs || Exit 1
echo AC_OUTPUT >> configure.ac
# Check that the testsuite driver copes well with unreadable '.log'
# and '.trs' files.
-am_parallel_tests=yes
. ./defs || Exit 1
: > t
# - TEST_LOGS redefinition at runtime
# - RECHECK_LOGS redefinition at runtime
-am_parallel_tests=yes
. ./defs || Exit 1
cat >> configure.ac << 'END'
# - trailing whitespace in TESTS
# GNU make 3.80 may expand trailing white space to '.log'.
-am_parallel_tests=yes
. ./defs || Exit 1
cat >> configure.ac << 'END'
# FIXME: the features tested by this script has been moved in contrib.
# FIXME: We should move this script accordingly.
-am_parallel_tests=yes
. ./defs || Exit 1
# Try the variants that are tried in check-html.am.
# Check parallel-tests features:
# - concurrent parallel execution
-am_parallel_tests=yes
. ./defs || Exit 1
case $MAKE in
# Actually, this test doesn't ensure that things happen concurrently.
# It merely serves as demonstration. :-)
-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.
-am_parallel_tests=yes
. ./defs || Exit 1
cat >> configure.ac << 'END'
AC_OUTPUT
# manual for the ugliness in this area, when VPATH comes into
# play. :-/
-am_parallel_tests=yes
. ./defs || Exit 1
cat >> configure.ac << 'END'
# Check parallel-tests features:
# - recheck
-am_parallel_tests=yes
. ./defs || Exit 1
cat >> configure.ac << 'END'
# Test that POSIX variable expansion '$(var:str=rpl)' works when used
# with the TESTS special variable.
+# For gen-testsuite-part: ==> try-with-serial-tests <==
. ./defs || Exit 1
cat >> configure.ac << 'END'
# Check support for AC_CONFIG_LIBOBJ_DIR vs LIBOBJS.
# (pr401b.test and pr401c.test do the same for LTLIBOBJS and ALLOCA)
-am_parallel_tests=no
required=cc
. ./defs || Exit 1
$ACLOCAL
$AUTOCONF
-$AUTOMAKE
+$AUTOMAKE -a
./configure
$MAKE distcheck
# Check support for AC_CONFIG_LIBOBJ_DIR vs LTLIBOBJS.
# (pr401.test and pr401c.test do the same for LIBOBJS and ALLOCA)
-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)
-am_parallel_tests=no
required=cc
. ./defs || Exit 1
mkdir lib src
-ac_cv_func_alloca_works=no
-export ac_cv_func_alloca_works
+ac_cv_func_alloca_works=no; export ac_cv_func_alloca_works
cat >lib/alloca.c <<'EOF'
const char *feep (void)
$ACLOCAL
$AUTOCONF
-$AUTOMAKE
+$AUTOMAKE -a
./configure
$MAKE distcheck
vars='
me
required
- am_parallel_tests
+ am_serial_tests
am_using_tap
am_create_testdir
am_tap_implementation
# Option 'serial-tests'.
-# To avoid useless generation of a sibling test.
-am_parallel_tests=yes
am_create_testdir=empty
. ./defs || Exit 1
mkdir one two
-cat >> one/configure.ac <<END
+cat > one/configure.ac <<END
AC_INIT([$me], [1.0])
AM_INIT_AUTOMAKE([serial-tests])
AC_CONFIG_FILES([Makefile])
echo 'TESTS = foo.test bar.test' > one/Makefile.am
-cat >> two/configure.ac <<END
+cat > two/configure.ac <<END
AC_INIT([$me], [2.0])
AC_CONFIG_AUX_DIR([config])
AM_INIT_AUTOMAKE([parallel-tests])
# - handling of "ambiguous" TODO and SKIP directives
# See also related test 'tap-todo-skip-together.test'.
-am_parallel_tests=yes
. ./defs || Exit 1
. "$am_testauxdir"/tap-setup.sh || fatal_ "sourcing tap-setup.sh"
# - test results without number get automatically numbered in the
# console progress output
-am_parallel_tests=yes
. ./defs || Exit 1
. "$am_testauxdir"/tap-setup.sh || fatal_ "sourcing tap-setup.sh"
# - missing, unreadable, or not-executable test scripts cause proper
# error reports
-am_parallel_tests=yes
. ./defs || Exit 1
fetch_tap_driver
# - even after a "Bail out!" directive, all input is still copied in
# the log file
-am_parallel_tests=yes
. ./defs || Exit 1
. "$am_testauxdir"/tap-setup.sh || fatal_ "sourcing tap-setup.sh"
# perl implementation of the Automake TAP driver, but expect the latter,
# "more modern" behaviour in our awk TAP driver.
-am_parallel_tests=yes
am_tap_implementation=shell
. ./defs || Exit 1
# - A "Bail out!" directive causes the driver to ignore the exit
# status of the test script.
-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.
-am_parallel_tests=yes
. ./defs || Exit 1
. "$am_testauxdir"/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.
-am_parallel_tests=yes
. ./defs || Exit 1
. "$am_testauxdir"/tap-setup.sh || fatal_ "sourcing tap-setup.sh"
# Basic TAP test protocol support:
# - "Bail out!" magic
-am_parallel_tests=yes
. ./defs || Exit 1
. "$am_testauxdir"/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.
-am_parallel_tests=yes
. ./defs || Exit 1
fetch_tap_driver
# TAP support:
# - colorization of TAP results and diagnostic messages
-am_parallel_tests=yes
. ./defs || Exit 1
esc='\e'
# Auxiliary test to set up common data used by many tests on TAP support.
-am_parallel_tests=yes
. ./defs || Exit 1
cat >> configure.ac << END
# Basic TAP test protocol support:
# - dependencies between test scripts
-am_parallel_tests=yes
. ./defs || Exit 1
cat > Makefile.am << 'END'
# - option '--diagnostic-string' to customize the string introducing
# TAP diagnostics
-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
-am_parallel_tests=yes
. ./defs || Exit 1
. "$am_testauxdir"/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".
-am_parallel_tests=yes
. ./defs || Exit 1
fetch_tap_driver
# with the Automake test harness".
am_create_testdir=empty
-am_parallel_tests=yes
. ./defs || Exit 1
cat > Makefile.am <<'END'
# - error messages from awk/shell/perl goes to the console
required=non-root
-am_parallel_tests=yes
am_create_testdir=empty
. ./defs || Exit 1
# TAP support:
# - empty diagnostic messages are discarder
-am_parallel_tests=yes
. ./defs || Exit 1
. "$am_testauxdir"/tap-setup.sh || fatal_ "sourcing tap-setup.sh"
# - empty TAP input
# - blank TAP input
-am_parallel_tests=yes
. ./defs || Exit 1
. "$am_testauxdir"/tap-setup.sh || fatal_ "sourcing tap-setup.sh"
# TAP support:
# - "escape" TODO and SKIP directives (by escaping the "#" character)
-am_parallel_tests=yes
. ./defs || Exit 1
. "$am_testauxdir"/tap-setup.sh || fatal_ "sourcing tap-setup.sh"
# TAP support:
# - "escape" TODO and SKIP directives (by escaping the "#" character)
-am_parallel_tests=yes
. ./defs || Exit 1
. "$am_testauxdir"/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.
-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'.
-am_parallel_tests=yes
. ./defs || Exit 1
. "$am_testauxdir"/tap-setup.sh || fatal_ "sourcing tap-setup.sh"
# TAP support: more unusual forms for valid TAP input.
# See also related test 'tap-fancy.test'.
-am_parallel_tests=yes
. ./defs || Exit 1
. "$am_testauxdir"/tap-setup.sh || fatal_ "sourcing tap-setup.sh"
# TAP support:
# - which log files get copied in the global log?
-am_parallel_tests=yes
. ./defs || Exit 1
. "$am_testauxdir"/tap-setup.sh || fatal_ "sourcing tap-setup.sh"
# - which global test result derives from different test results
# mixed in a single script?
-am_parallel_tests=yes
. ./defs || Exit 1
. "$am_testauxdir"/tap-setup.sh || fatal_ "sourcing tap-setup.sh"
# - VERBOSE environment variable support
# Keep in sync with 'test-log.test'.
-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.
-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.
-am_parallel_tests=yes
. ./defs || Exit 1
cat > foo.test <<END
# correct test script(s)
# - "make distcheck" works
-am_parallel_tests=yes
. ./defs || Exit 1
fetch_tap_driver
# - interactions with 'check_*' variables
required='cc native'
-am_parallel_tests=yes
. ./defs || Exit 1
fetch_tap_driver
# of a "plan with skip" TAP plan
# generally true!
-am_parallel_tests=yes
. ./defs || Exit 1
. "$am_testauxdir"/tap-setup.sh || fatal_ "sourcing tap-setup.sh"
# TAP support:
# - literal string "0" as a TODO or SKIP message
-am_parallel_tests=yes
. ./defs || Exit 1
. "$am_testauxdir"/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
-am_parallel_tests=yes
. ./defs || Exit 1
. "$am_testauxdir"/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 ...").
-am_parallel_tests=yes
. ./defs || Exit 1
. "$am_testauxdir"/tap-setup.sh || fatal_ "sourcing tap-setup.sh"
# TAP support:
# - the string "0" as a test description
-am_parallel_tests=yes
. ./defs || Exit 1
. "$am_testauxdir"/tap-setup.sh || fatal_ "sourcing tap-setup.sh"
# - don't spuriously recognize negative TAP result numbers, but correctly
# interpret them as test descriptions instead
-am_parallel_tests=yes
. ./defs || Exit 1
. "$am_testauxdir"/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.
-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.
-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
-am_parallel_tests=yes
. ./defs || Exit 1
. "$am_testauxdir"/tap-setup.sh || fatal_ "sourcing tap-setup.sh"
# - ':test-results:' directives in test scripts' output doesn't
# originate spurious results in the testsuite summary
-am_parallel_tests=yes
. ./defs || Exit 1
. "$am_testauxdir"/tap-setup.sh || fatal_ "sourcing tap-setup.sh"
# - don't spuriously recognize lines that are "almost" TAP lines as
# real TAP lines
-am_parallel_tests=yes
. ./defs || Exit 1
. "$am_testauxdir"/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.
-am_parallel_tests=yes
. ./defs || Exit 1
. "$am_testauxdir"/tap-setup.sh || fatal_ "sourcing tap-setup.sh"
# - TAP result numbers terminated by a non-whitespace "word boundary"
# character are recognized
-am_parallel_tests=yes
. ./defs || Exit 1
. "$am_testauxdir"/tap-setup.sh || fatal_ "sourcing tap-setup.sh"
# TAP support:
# - how does TAP result numbers with leading zero fares?
-am_parallel_tests=yes
. ./defs || Exit 1
. "$am_testauxdir"/tap-setup.sh || fatal_ "sourcing tap-setup.sh"
# TAP result lines whose description is a number.
-am_parallel_tests=yes
. ./defs || Exit 1
. "$am_testauxdir"/tap-setup.sh || fatal_ "sourcing tap-setup.sh"
# TAP support:
# - out-of-order test results
-am_parallel_tests=yes
. ./defs || Exit 1
. "$am_testauxdir"/tap-setup.sh || fatal_ "sourcing tap-setup.sh"
# log file
# See also related test 'tap-passthrough.test'.
-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'.
-am_parallel_tests=yes
. ./defs || Exit 1
weirdchars=\''"\$@!&()[]<>#;,:.^?*/'
# TAP support:
# - some corner cases for TAP plan
-am_parallel_tests=yes
. ./defs || Exit 1
. "$am_testauxdir"/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'.
-am_parallel_tests=yes
. ./defs || Exit 1
. "$am_testauxdir"/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.
-am_parallel_tests=yes
. ./defs || Exit 1
. "$am_testauxdir"/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.
-am_parallel_tests=yes
. ./defs || Exit 1
. "$am_testauxdir"/tap-setup.sh || fatal_ "sourcing tap-setup.sh"
# TAP support:
# - test plan preceding and/or following non-result TAP lines
-am_parallel_tests=yes
. ./defs || Exit 1
. "$am_testauxdir"/tap-setup.sh || fatal_ "sourcing tap-setup.sh"
# TAP support:
# - plan line with trailing whitespace is recognized and handled correctly
-am_parallel_tests=yes
. ./defs || Exit 1
. "$am_testauxdir"/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
-am_parallel_tests=yes
. ./defs || Exit 1
. "$am_testauxdir"/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
-am_parallel_tests=yes
. ./defs || Exit 1
. "$am_testauxdir"/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").
-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").
-am_parallel_tests=yes
. ./defs || Exit 1
. "$am_testauxdir"/tap-setup.sh || fatal_ "sourcing tap-setup.sh"
# TAP support:
# - "SKIP" keyword in a TAP plan is case-insensitive
-am_parallel_tests=yes
. ./defs || Exit 1
. "$am_testauxdir"/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.
-am_parallel_tests=yes
. ./defs || Exit 1
. "$am_testauxdir"/tap-setup.sh || fatal_ "sourcing tap-setup.sh"
# TAP support:
# - TAP errors following a "TAP plan with SKIP" are still diagnosed.
-am_parallel_tests=yes
. ./defs || Exit 1
. "$am_testauxdir"/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.
-am_parallel_tests=yes
. ./defs || Exit 1
. "$am_testauxdir"/tap-setup.sh || fatal_ "sourcing tap-setup.sh"
# been seen is an error
# - any test result following a "plan with skip" is an error.
-am_parallel_tests=yes
. ./defs || Exit 1
. "$am_testauxdir"/tap-setup.sh || fatal_ "sourcing tap-setup.sh"
# - normalization of whitespace in console testsuite progress associated
# with a SKIP directive in the TAP plan
-am_parallel_tests=yes
. ./defs || Exit 1
. "$am_testauxdir"/tap-setup.sh || fatal_ "sourcing tap-setup.sh"
# Basic TAP test protocol support:
# - special plan format to skip all the tests in a script
-am_parallel_tests=yes
. ./defs || Exit 1
. "$am_testauxdir"/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?
-am_parallel_tests=yes
. ./defs || Exit 1
cat >expect-check <<'END'
# TAP support:
# - RECHECK_LOGS
-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'.
-am_parallel_tests=yes
. ./defs || Exit 1
fetch_tap_driver
# TAP support:
# - non-directive comments in TAP results are kept verbatim
-am_parallel_tests=yes
. ./defs || Exit 1
. "$am_testauxdir"/tap-setup.sh || fatal_ "sourcing tap-setup.sh"
# TAP support:
# - a test script terminated by a signal causes an hard error
-am_parallel_tests=yes
. ./defs || Exit 1
fetch_tap_driver
# - a test result numbered as 0 is to be considered out-of-order
# This is consistent with the behaviour of the 'prove' utility.
-am_parallel_tests=yes
. ./defs || Exit 1
if test $am_tap_implementation = perl; then
# - TODO and SKIP directives on the same line: the first one wins
# See also related test 'tap-ambiguous-directive.test'.
-am_parallel_tests=yes
. ./defs || Exit 1
. "$am_testauxdir"/tap-setup.sh || fatal_ "sourcing tap-setup.sh"
# - normalization of whitespace in console testsuite progress associated
# with TODO and SKIP directives
-am_parallel_tests=yes
. ./defs || Exit 1
. "$am_testauxdir"/tap-setup.sh || fatal_ "sourcing tap-setup.sh"
# - the reasons for TODO and SKIP, if present, are nicely printed in
# the testsuite progress output
-am_parallel_tests=yes
. ./defs || Exit 1
. "$am_testauxdir"/tap-setup.sh || fatal_ "sourcing tap-setup.sh"
# TAP support:
# - unplanned tests are properly reported as errors
-am_parallel_tests=yes
. ./defs || Exit 1
. "$am_testauxdir"/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'.
-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
-am_parallel_tests=yes
. ./defs || Exit 1
. "$am_testauxdir"/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.
-am_parallel_tests=yes
. ./defs || Exit 1
. "$am_testauxdir"/tap-setup.sh || fatal_ "sourcing tap-setup.sh"
# parallel-tests:
# - LOG_DRIVER variables can be AC_SUBST'd
-am_parallel_tests=yes
. ./defs || Exit 1
mkdir test-drivers
# - Automake can correctly handle conditionals contents for the
# LOG_DRIVER variables.
-am_parallel_tests=yes
. ./defs || Exit 1
cp "$am_testauxdir"/trivial-test-driver . \
# e.g., 'sub/foo.log'), the Automake test harness must ensure that
# directory exists before calling any custom test driver.
-am_parallel_tests=yes
. ./defs || Exit 1
cat >> configure.ac << 'END'
# and 'parallel-tests-recheck-override.test'.
# Keep in sync with 'tap-recheck.test'.
-am_parallel_tests=yes
. ./defs || Exit 1
cp "$am_testauxdir"/trivial-test-driver . \
# See also related tests 'test-driver-custom-multitest-recheck.test' and
# 'parallel-tests-recheck-override.test'.
-am_parallel_tests=yes
. ./defs || Exit 1
cp "$am_testauxdir"/trivial-test-driver . \
# only checks implementation details in Automake's custom test drivers
# support, but also serves as a "usability test" for our APIs.
-am_parallel_tests=yes
. ./defs || Exit 1
cp "$am_testauxdir"/trivial-test-driver . \
# installed or referenced if it's not used, i.e., if the user has
# defined his own '*LOG_DRIVER' variables.
-am_parallel_tests=yes
. ./defs || Exit 1
cat >> configure.ac <<'END'
# Custom test drivers: "abstract" XFAIL_TESTS support.
-am_parallel_tests=yes
. ./defs || Exit 1
cat >> configure.ac <<'END'
# Custom test drivers: per-extension test drivers.
-am_parallel_tests=yes
. ./defs || Exit 1
cat >> configure.ac << 'END'
# (like our dummy one in this test) might leave around a test log even
# in case of internal failures.
-am_parallel_tests=yes
. ./defs || Exit 1
cat >> configure.ac <<'END'
# defined in a subdir Makefile
am_create_testdir=empty
-am_parallel_tests=yes
. ./defs || Exit 1
ocwd=`pwd` || fatal_ "getting current working directory"
# Custom test drivers: check that the test name passed to the test
# driver has any VPATH prefix stripped.
-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
-am_parallel_tests=yes
. ./defs || Exit 1
: > Makefile.am
# Expose bug in conditional definition of TEST_EXTENSIONS.
-am_parallel_tests=yes
. ./defs || Exit 1
cat >> configure.ac << 'END'
# and do not diagnose valid (albeit more unusual) ones.
# See automake bug#9400.
-am_parallel_tests=yes
. ./defs || Exit 1
cat >> configure.ac <<'END'
# Check that our concurrent test harness is not subject to spurious VPATH
# rewrites.
-am_parallel_tests=yes
. ./defs || Exit 1
cat >> configure.ac << 'END'
# - VERBOSE environment variable support
# Keep in sync with 'tap-log.test'.
-am_parallel_tests=yes
. ./defs || Exit 1
cat >> configure.ac <<END
# different test scripts don't end up sharing the same log file.
# (Automake itself is such a project, BTW ;-)
-am_parallel_tests=yes
. ./defs || Exit 1
cat >> configure.ac <<END
# with the use of the reStructuredText field ':copy-in-global-log:' in
# the associated '.trs' files.
-am_parallel_tests=yes
. ./defs || Exit 1
cat >> configure.ac << 'END'
# "global test result" in '*.trs' files, as documented in the automake
# manual.
-am_parallel_tests=yes
. ./defs || Exit 1
cat >> configure.ac << 'END'
# Test the "make recheck" semantics for custom test drivers, as documented
# in the Automake manual.
-am_parallel_tests=yes
. ./defs || Exit 1
cat >> configure.ac << 'END'
# Parallel testsuite harness: check APIs for the registering of test
# results in '*.trs' files, as documented in the automake manual.
-am_parallel_tests=yes
. ./defs || Exit 1
cat >> configure.ac << 'END'
# - non-existent scripts listed in TESTS get diagnosed
# See also related test 'test-missing2.test'.
-am_parallel_tests=yes
. ./defs || Exit 1
cat >> configure.ac << 'END'
# all the $(TEST_LOGS) have a dummy dependency.
# See also related test 'test-missing.test'.
-am_parallel_tests=yes
. ./defs || Exit 1
cat >> configure.ac << 'END'
# - creation and removal of '.trs' auxiliary files
# - check some internals regarding the use of '.trs' files.
-am_parallel_tests=yes
. ./defs || Exit 1
cat >> configure.ac <<END
# This test is complex and tricky, but that's acceptable since we are
# testing semantics that are potentially complex and tricky.
-am_parallel_tests=yes
. ./defs || Exit 1
cat >> configure.ac <<END
# Check parallel harness features:
# - recovery from unreadable '.trs' files, in various scenarios
-am_parallel_tests=yes
. ./defs || Exit 1
cat >> configure.ac <<END
# by TESTS_ENVIRONMENT and AM_TESTS_ENVIRONMENT in LOG_COMPILER and
# LOG_FLAGS (for tests both with and without registered extensions).
-am_parallel_tests=yes
. ./defs || Exit 1
cat >> configure.ac << '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.
-am_parallel_tests=no
+am_serial_tests=yes
. ./defs || Exit 1
cat >> configure.ac <<END
# and the following CC:ed thread on bug-autoconf list:
# <http://lists.gnu.org/archive/html/bug-autoconf/2011-06/msg00002.html>
-am_parallel_tests=yes
. ./defs || Exit 1
cat >> configure.ac << 'END'
# "Simple Tests" testsuite driver: check TESTS_ENVIRONMENT support.
+am_serial_tests=yes
. ./defs || Exit 1
cat >> configure.ac << 'END'
# FIXME: performance is too low, and FAIL accordingly; it just offers an
# FIXME: easy way to verify how effective a performance optimization is.
-am_parallel_tests=yes
. ./defs || Exit 1
count=5000
# Incidentally, this test also checks that the testsuite summary doesn't
# give any bug-report address if it's not defined.
-am_parallel_tests=yes
. ./defs || Exit 1
for s in trivial-test-driver extract-testsuite-summary.pl; do
# Check that the global testsuite log file referenced in the testsuite
# summary and in the global testsuite log itself is correct.
-am_parallel_tests=yes
. ./defs || Exit 1
mv configure.ac configure.stub
# FIXME: performance is too low, and FAIL accordingly; it just offers
# FIXME: an easy way verify how effective a performance optimization is.
-am_parallel_tests=yes
. ./defs || Exit 1
count=10000