tests: use 'parallel-tests' Automake option by default
authorStefano Lattarini <stefano.lattarini@gmail.com>
Tue, 15 May 2012 14:12:09 +0000 (16:12 +0200)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Fri, 18 May 2012 12:03:11 +0000 (14:03 +0200)
commit7b142a7b363a49be43ff861abc2dca5af9593f9d
treee744359ac6bccf1714314ffd1d548bd858960739
parent8084ae1b520862e03201d3bddfe01f3c8d197d1c
tests: use 'parallel-tests' Automake option by default

This will help our transition from 'serial-tests' to 'parallel-tests'
as the default test suite driver enabled by a TESTS assignment in the
input Makefile.am.  Note that that change of default will only take
place in master, though.

* defs: Pass the 'parallel-tests' option to the AM_INIT_AUTOMAKE
invocation in the created 'configure.ac' stub, unless the variable
'am_serial_tests' is set to "yes".  Don't pay attention anymore to
the 'am_parallel_tests' variable, that's obsolete now.
* defs-static.in: Warn if the 'am_serial_tests' variable is set in the
environment; conversely, don't warn anymore about 'am_parallel_tests'
being set in the environment.
* Makefile.am (AM_TESTS_ENVIRONMENT): Nullify the 'am_serial_tests'
variable instead of the now-obsolete 'am_parallel_tests' one.
* syntax-checks.mk (sc_tests_obsolete_variables): Also warn against
uses of 'am_parallel_tests', which is now deprecated in favor of
'am_serial_tests'.  Similarly, if a use of 'parallel_tests' is seen,
suggest using 'am_serial_tests' instead, not 'am_parallel_tests'.
* gen-testsuite-part: Now that we use the 'parallel-tests' by default
in our tests, we need to completely change the logic and semantics of
generation of sibling tests for those tests that check the Automake
generated testsuite harness itself.  Do that, and give a complete
explanation of the new logic and semantics in the relevant comments.
* t/README: Update.
* Lots of test cases: Adjust.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
199 files changed:
Makefile.am
defs
defs-static.in
gen-testsuite-part
syntax-checks.mk
t/README
t/am-tests-environment.sh
t/ax/tap-summary-aux.sh
t/ax/testsuite-summary-checks.sh
t/backcompat5.sh
t/check-concurrency-bug9245.sh
t/check-exported-srcdir.sh
t/check-fd-redirect.sh
t/check-no-test-driver.sh
t/check-subst-prog.sh
t/check-subst.sh
t/check-tests-in-builddir.sh
t/check.sh
t/check10.sh
t/check11.sh
t/check12.sh
t/check2.sh
t/check3.sh
t/check4.sh
t/check5.sh
t/check6.sh
t/check7.sh
t/check8.sh
t/color.sh
t/color2.sh
t/cygnus-imply-foreign.sh
t/dejagnu.sh
t/dist-auxdir-many-subdirs.sh
t/distcheck-pr10470.sh
t/exeext4.sh
t/java-compile-run-flat.sh
t/java-compile-run-nested.sh
t/make-dryrun.tap
t/maken3.sh
t/parallel-tests-cmdline-override.sh
t/parallel-tests-console-output.sh
t/parallel-tests-driver-install.sh
t/parallel-tests-dry-run-1.sh
t/parallel-tests-dry-run-2.sh
t/parallel-tests-empty-testlogs.sh
t/parallel-tests-exeext.sh
t/parallel-tests-exit-statuses.sh
t/parallel-tests-extra-programs.sh
t/parallel-tests-fd-redirect-exeext.sh
t/parallel-tests-fd-redirect.sh
t/parallel-tests-fork-bomb.sh
t/parallel-tests-harderror.sh
t/parallel-tests-interrupt.tap
t/parallel-tests-log-compiler-1.sh
t/parallel-tests-log-compiler-2.sh
t/parallel-tests-log-compiler-example.sh
t/parallel-tests-log-override-1.sh
t/parallel-tests-log-override-2.sh
t/parallel-tests-log-override-recheck.sh
t/parallel-tests-many.sh
t/parallel-tests-no-color-in-log.sh
t/parallel-tests-no-spurious-summary.sh
t/parallel-tests-once.sh
t/parallel-tests-recheck-depends-on-all.sh
t/parallel-tests-reset-term.sh
t/parallel-tests-subdir.sh
t/parallel-tests-suffix-prog.sh
t/parallel-tests-suffix.sh
t/parallel-tests-trailing-bslash.sh
t/parallel-tests-unreadable.sh
t/parallel-tests.sh
t/parallel-tests10.sh
t/parallel-tests2.sh
t/parallel-tests3.sh
t/parallel-tests5.sh
t/parallel-tests6.sh
t/parallel-tests8.sh
t/parallel-tests9.sh
t/posixsubst-tests.sh
t/pr401.sh
t/pr401b.sh
t/pr401c.sh
t/self-check-env-sanitize.tap
t/serial-tests.sh
t/tap-ambiguous-directive.sh
t/tap-autonumber.sh
t/tap-bad-prog.tap
t/tap-bailout-and-logging.sh
t/tap-bailout-leading-space.sh
t/tap-bailout-suppress-badexit.sh
t/tap-bailout-suppress-later-diagnostic.sh
t/tap-bailout-suppress-later-errors.sh
t/tap-bailout.sh
t/tap-basic.sh
t/tap-color.sh
t/tap-common-setup.sh
t/tap-deps.sh
t/tap-diagnostic-custom.sh
t/tap-diagnostic.sh
t/tap-doc.sh
t/tap-doc2.sh
t/tap-driver-stderr.sh
t/tap-empty-diagnostic.sh
t/tap-empty.sh
t/tap-escape-directive-2.sh
t/tap-escape-directive.sh
t/tap-exit.sh
t/tap-fancy.sh
t/tap-fancy2.sh
t/tap-global-log.sh
t/tap-global-result.sh
t/tap-log.sh
t/tap-merge-stdout-stderr.sh
t/tap-missing-plan-and-bad-exit.sh
t/tap-more.sh
t/tap-more2.sh
t/tap-msg0-bailout.sh
t/tap-msg0-directive.sh
t/tap-msg0-misc.sh
t/tap-msg0-planskip.sh
t/tap-msg0-result.sh
t/tap-negative-numbers.sh
t/tap-no-disable-hard-error.sh
t/tap-no-merge-stdout-stderr.sh
t/tap-no-spurious-numbers.sh
t/tap-no-spurious-summary.sh
t/tap-no-spurious.sh
t/tap-not-ok-skip.sh
t/tap-number-wordboundary.sh
t/tap-numbers-leading-zero.sh
t/tap-numeric-description.sh
t/tap-out-of-order.sh
t/tap-passthrough-exit.sh
t/tap-passthrough.sh
t/tap-plan-corner.sh
t/tap-plan-errors.sh
t/tap-plan-leading-zero.sh
t/tap-plan-malformed.sh
t/tap-plan-middle.sh
t/tap-plan-whitespace.sh
t/tap-plan.sh
t/tap-planskip-and-logging.sh
t/tap-planskip-badexit.sh
t/tap-planskip-bailout.sh
t/tap-planskip-case-insensitive.sh
t/tap-planskip-late.sh
t/tap-planskip-later-errors.sh
t/tap-planskip-unplanned-corner.sh
t/tap-planskip-unplanned.sh
t/tap-planskip-whitespace.sh
t/tap-planskip.sh
t/tap-realtime.sh
t/tap-recheck-logs.sh
t/tap-recheck.sh
t/tap-result-comment.sh
t/tap-signal.tap
t/tap-test-number-0.sh
t/tap-todo-skip-together.sh
t/tap-todo-skip-whitespace.sh
t/tap-todo-skip.sh
t/tap-unplanned.sh
t/tap-whitespace-normalization.sh
t/tap-with-and-without-number.sh
t/tap-xfail-tests.sh
t/test-driver-acsubst.sh
t/test-driver-cond.sh
t/test-driver-create-log-dir.sh
t/test-driver-custom-multitest-recheck.sh
t/test-driver-custom-multitest-recheck2.sh
t/test-driver-custom-multitest.sh
t/test-driver-custom-no-extra-driver.sh
t/test-driver-custom-xfail-tests.sh
t/test-driver-custom.sh
t/test-driver-fail.sh
t/test-driver-is-distributed.sh
t/test-driver-strip-vpath.sh
t/test-driver-trs-suffix-registered.sh
t/test-extensions-cond.sh
t/test-extensions.sh
t/test-harness-vpath-rewrite.sh
t/test-log.sh
t/test-logs-repeated.sh
t/test-metadata-global-log.sh
t/test-metadata-global-result.sh
t/test-metadata-recheck.sh
t/test-metadata-results.sh
t/test-missing.sh
t/test-missing2.sh
t/test-trs-basic.sh
t/test-trs-recover.sh
t/test-trs-recover2.sh
t/tests-environment-and-log-compiler.sh
t/tests-environment-backcompat.sh
t/tests-environment-fd-redirect.sh
t/tests-environment.sh
t/testsuite-recheck-speed.sh
t/testsuite-summary-count-many.sh
t/testsuite-summary-reference-log.sh
t/testsuite-summary-speed.sh