]> git.ipfire.org Git - thirdparty/automake.git/commit
check: small cleanups and refactorings in test harness and drivers
authorStefano Lattarini <stefano.lattarini@gmail.com>
Fri, 5 Aug 2011 10:08:20 +0000 (12:08 +0200)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Fri, 5 Aug 2011 10:29:18 +0000 (12:29 +0200)
commit4839ca9219b95a6155e4161438318ec0aca3aaef
tree8ca5b9cb5c3a79a8db71677b2f88907a32891466
parent5e3ae4e14a471a7c61ac75ffd6cd71659e81b07f
check: small cleanups and refactorings in test harness and drivers

* lib/tap-driver (yn): New subroutine, converts a boolean value to
a "yes" or "no" string.
(write_test_results): Use it, and related reformatting.
* lib/test-driver (trap): Also remove the `.trs' file on signals,
for extra safety.
(fatal): Remove this function, it's never used.
($logfile, $trsfile): Renamed ...
($log_file, $trs_file): ... to these, for clarity, and in order to
be more consistent with the `tap-driver' script.
Improve a couple of comments.
* automake.in (handle_tests): Don't define anymore the now-obsolete
make macro `$(TEST_LOGS_TMP)', nor add it to the list of files to
be removed upon "make mostlyclean".
* lib/am/check.am ($(TEST_SUITE_LOG)): New shell function `f_ok',
tells whether a path refers to an existing, regular, readable file.
Use it throughout.
(recheck): Be safer w.r.t. make implementation that run recipes
with `errexit' shell flag active.
ChangeLog
automake.in
lib/Automake/tests/Makefile.in
lib/am/check.am
lib/tap-driver
lib/test-driver
tests/Makefile.in