testsuite: refactor tests on TAP support in view of future changes
authorStefano Lattarini <stefano.lattarini@gmail.com>
Wed, 17 Aug 2011 10:06:25 +0000 (12:06 +0200)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Wed, 17 Aug 2011 13:32:28 +0000 (15:32 +0200)
commitfb21ed841b61c61d70ac9c370f53d2cf53231764
tree33ce9b26ba6cf0f8b1e2b66f27d1c09c3d9a9b95
parent5c210551131a0fc50d0e1af21843b35df46ffdbf
testsuite: refactor tests on TAP support in view of future changes

* tests/defs (fetch_tap_driver): New subroutine; it fetches the
automake-provided TAP driver from the `lib/' directory into the
current directory, and edits its shebang line so that it will be
run with the perl interpreter determined at configure time.
* tests/tap-setup.sh: Use it.
* tests/tap-common-setup.test: There's no need to AC_SUBST `PERL'
anymore, nor to use it in the Makefile to run the TAP driver.
Also, use the `fetch_tap_driver' function instead of copying the
`tap-driver' auxiliary script directly.
* tests/tap-bad-prog.tap: Likewise.
* tests/tap-diagnostic-custom.test: Likewise.
* tests/tap-doc.test: Likewise.
* tests/tap-merge-stdout-stderr.test: Likewise.
* tests/tap-more.test: Likewise.
* tests/tap-more2.test: Likewise.
* tests/tap-recheck.test: Likewise.
* tests/tap-summary-aux.sh: Likewise.
* tests/tap-basic.test: Likewise, and fix a grammaro in comments
since we are at it.
13 files changed:
ChangeLog
tests/defs
tests/tap-bad-prog.tap
tests/tap-basic.test
tests/tap-common-setup.test
tests/tap-diagnostic-custom.test
tests/tap-doc.test
tests/tap-merge-stdout-stderr.test
tests/tap-more.test
tests/tap-more2.test
tests/tap-recheck.test
tests/tap-setup.sh
tests/tap-summary-aux.sh