]> git.ipfire.org Git - thirdparty/automake.git/commit
parallel-tests: allow custom driver scripts
authorStefano Lattarini <stefano.lattarini@gmail.com>
Fri, 20 May 2011 19:45:51 +0000 (21:45 +0200)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Tue, 21 Jun 2011 20:27:25 +0000 (22:27 +0200)
commit79922343073c66c3f8d4692efb1f31fe47c16fa9
treecdbc20367f78e483625a9ac526174a2f54e974fe
parenta27c9c4956fd1643cc3a0b3a553ce40039867680
parallel-tests: allow custom driver scripts

Allow suffix-based definition of custom "driver script" for the
test scripts.  These driver scripts will be responsible of
launching the tests (or their corresponding $(LOG_COMPILER), if
they have an associated one), interpreting and displaying the
test results, and writing the `.log' files.

This new API should allow easy and flexible use of different
test protocols in the future; in particular, we plan to use it
to implement TAP and SubUnit harnesses.

Note that no new documentation is added by this change; that is
be left for follow-up changes.

* automake.in (handle_tests): Define default for $(LOG_DRIVER),
and, for any registered test extension `<ext>', define defaults
for $(<ext>_LOG_DRIVER).  Substitute %DRIVER% using these new
variables, instead of the old internal $(am__test_driver).  When
processing check2.am, also substitute %DRIVER_FLAGS%.
Require auxiliary script `test-driver' only if no driver has been
explicitly defined for the test script kinds.
* am/check2.am (?GENERIC?%EXT%$(EXEEXT).log, ?GENERIC?%EXT%.log,
?!GENERIC?%OBJ%): Pass the %DRIVER_FLAGS% to the %DRIVER% call.
* tests/parallel-tests-no-extra-driver.test: New test.
* tests/test-driver-custom.test: Likewise.
* tests/test-driver-custom-xfail-tests.test: Likewise.
* tests/test-driver-fail.test: Likewise.
* tests/Makefile.am: Update.
* NEWS: Update.
ChangeLog
NEWS
automake.in
lib/Automake/tests/Makefile.in
lib/am/check2.am
tests/Makefile.am
tests/Makefile.in
tests/test-driver-custom-no-extra-driver.test [new file with mode: 0755]
tests/test-driver-custom-xfail-tests.test [new file with mode: 0755]
tests/test-driver-custom.test [new file with mode: 0755]
tests/test-driver-fail.test [new file with mode: 0755]