simple tests: support developer-defined fd redirections
authorStefano Lattarini <stefano.lattarini@gmail.com>
Sun, 24 Jul 2011 14:47:24 +0000 (16:47 +0200)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Tue, 2 Aug 2011 21:01:25 +0000 (23:01 +0200)
commitb9e9d546e8ab45139be6d8e939602cd712c36c8c
tree8062de2afc656bde7f2b3b791a38dc995fb8c94f
parent3af7ec13fa085bbb532384d6bb7fd01fbd62391d
simple tests: support developer-defined fd redirections

Motivated by coreutils bug#8846, and related discussions:
 <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8846>
 <http://lists.gnu.org/archive/html/bug-autoconf/2011-06/msg00002.html>
In those threads it has been shown how problematic it can be to do
portable file descriptor redirections in the testsuite when using
the Automake testsuite harness.  This change should remedy to that
situation.

* lib/am/check2.am (?GENERIC?%EXT%$(EXEEXT).log,
?GENERIC?%EXT%.log, ?!GENERIC?%OBJ%): Append redirection defined
in $(AM_TESTS_FD_REDIRECT) to the command-line invocations of the
test scripts.
* lib/am/check.am [!%?PARALLEL_TESTS%] $(check-TESTS): Likewise.
* NEWS: Update.
* doc/automake.texi (Script-based Testsuites): Document the new
feature.
* tests/check-fd-redirect.test: New test.
* tests/parallel-tests-fd-redirect.test: Likewise.
* tests/parallel-tests-am_tests_environment.test: Remove checks
about the use of redirections in AM_TESTS_ENVIRONMENT: they would
check deprecated (if not undefined) behaviour now.  Strengthen a
couple of still valid checks, to keep the test more in sync with
the documentation.  Improve debugging information.
* tests/Makefile.am (TESTS): Update.
ChangeLog
NEWS
doc/automake.texi
lib/Automake/tests/Makefile.in
lib/am/check.am
lib/am/check2.am
tests/Makefile.am
tests/Makefile.in
tests/check-fd-redirect.test [new file with mode: 0755]
tests/parallel-tests-am_tests_environment.test
tests/parallel-tests-fd-redirect.test [new file with mode: 0755]