tests: make test runner a script, not a shell function
commita51c6e0356e5c66fd9c2539f220c6cd2ad2de1e7
authorStefano Lattarini <stefano.lattarini@gmail.com>
Sat, 18 Jun 2011 08:26:15 +0000 (18 10:26 +0200)
committerJim Meyering <meyering@redhat.com>
Sun, 19 Jun 2011 19:57:43 +0000 (19 21:57 +0200)
tree140be66a3b761344c06a19cac4fc92d84eec7ca5
parente23f179557bc17bb7d2d72728d3b730d21aa41d8
tests: make test runner a script, not a shell function

This change implements a more correct and idiomatic use of the
features of the Automake-provided 'parallel-tests' harness.
Moreover, this change is required in order for the testsuite to
continue to work with the new testsuite harness that is planned
to be introduced in Automake 1.12 (which, as of the writing date,
is still under development and in alpha state).

* tests/shell-or-perl: New auxiliary script.
* tests/Makefile.am (EXTRA_DIST): Distribute it.
* tests/check.mk (TESTS_ENVIRONMENT): Remove definition of the
`shell_or_perl_' shell function, whose code has been moved in
the new script above (with a few improvements and extensions).
Do not use it to run the test scripts.
(LOG_COMPILER): New, properly invoking `shell-or-perl'.
tests/Makefile.am
tests/check.mk
tests/shell-or-perl [new file with mode: 0644]