]> git.ipfire.org Git - thirdparty/automake.git/commit
tests: avoid extra test generation (for `instspc' tests)
authorStefano Lattarini <stefano.lattarini@gmail.com>
Wed, 16 Feb 2011 12:46:33 +0000 (13:46 +0100)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Sun, 1 May 2011 15:43:40 +0000 (17:43 +0200)
commitc348cde4decb1f22a2305742cadafcaf0dd70d63
tree9d50bf212b100371d56c2e0d18322a6826f7e35e
parent6b7d31cec24b71073920bda28ec5977bed6b8e46
tests: avoid extra test generation (for `instspc' tests)

We don't really need to generate tons and tons of wrapper test
scripts (presently, ~ 90) just to run what is basically a single
test (specifically, `instspc-tests.sh') with different parameters.
In fact, the possibility of running a single driver script with
multiple files/configurations/parameters is one of the major
selling points of the 'parallel-tests' testsuite driver of
automake.  So why not use ourselves more extensively the best
features we provide?

* tests/instspc-tests.sh: Update heading comments.  Expect
to be executed, not sourced.  Update handling of command-line
arguments.  Adjust to reflect the renaming of "instspc tests"
from `instspc-*.test' to `*.instspc'.
* tests/instspc-data.test: Update heading comments.  Execute
driver script `instspc-tests.sh', instead of sourcing it.
Give more informative messages in case of internal errors.
* tests/Makefile.am (TESTS_EXTENSIONS): Define explicitly (to
`.test' and `.instspc').
(TESTS): Add `$(instspc_tests)'.
(generated_tests): Remove `$(instspc_tests)'.
(INSTSPC_LOG_COMPILER): Define.  Calls `instspc-tests.sh', so
that the "instspc tests" will be now executed by passing that
driver script a proper parameter.
($(instspc_tests)): Remove, we don't need anymore to generate
this tests.
($(instspc_tests:.test=.log)): Remove, substituted by ...
($(instspc_tests:.instspc=.log)): ... this.
($(instspc_tests)): New dependency declaration (dummy, but
required in order to have make actually produce expected log
files from the `.instspc.log' suffix rule).
(MAINTAINERCLEANFILES, generated_tests): Don't extend with
$(instspc_tests) anymore.
Update comments.
ChangeLog
tests/Makefile.am
tests/Makefile.in
tests/instspc-data.test
tests/instspc-tests.sh