]> git.ipfire.org Git - thirdparty/automake.git/commit
tests: add testcases sanity-checking the testsuite
authorStefano Lattarini <stefano.lattarini@gmail.com>
Mon, 21 Feb 2011 13:57:24 +0000 (14:57 +0100)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Fri, 25 Feb 2011 09:02:30 +0000 (10:02 +0100)
commit082028c1dbb8e23e3a7b32ebaa3d92321b55cb15
treebe5c466f4cb840828080fafd74c658e8075f1b8f
parentfd22dca159cfa10ecbb822d0dd6cc677cf333aab
tests: add testcases sanity-checking the testsuite

Helper subroutines, variables and other pieces of code defined
in the `tests/defs' and used by many testcases are non-obvious,
and tricky to get to work portably; but until now, they weren't
tested at all in a clear and self-contained way.
This change should remedy to the situation.

* tests/self-check-cleanup.test: New test, check removal of
temporary test working directory by `./defs'.
* tests/self-check-dir.test: New test, check that tests using
`./defs' create a proper temporary directory, and run in it.
* tests/self-check-exit.test: New test, check that, in case of
failing commands, the correct exit status is passed to the exit
trap installed by the `./defs' script.
* tests/self-check-is_newest.test: New test, checking the
`is_newest' subroutine.
* tests/self-check-me.test: New test, checking that $me gets
defined automatically by `tests/defs' if not set, and that it
can be overridden from either the shell or the environment.
* tests/self-check-sanity.test: New test, check that the sanity
checks performed by the `tests/defs' script works correctly.
* tests/self-check-unindent.test: New test, checking the
`unindent' subroutine.
* tests/Makefile.am (TESTS): Update.
ChangeLog
tests/Makefile.am
tests/Makefile.in
tests/self-check-cleanup.test [new file with mode: 0755]
tests/self-check-dir.test [new file with mode: 0755]
tests/self-check-exit.test [new file with mode: 0755]
tests/self-check-is_newest.test [new file with mode: 0755]
tests/self-check-me.test [new file with mode: 0755]
tests/self-check-sanity.test [new file with mode: 0755]
tests/self-check-unindent.test [new file with mode: 0755]