test defs: test directory creation more configurable
authorStefano Lattarini <stefano.lattarini@gmail.com>
Mon, 8 Aug 2011 21:35:28 +0000 (23:35 +0200)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Tue, 9 Aug 2011 08:26:31 +0000 (10:26 +0200)
commite3b6255fbf58b9120f1df8f91480749def57cec1
tree2d16bc281c9d7643f729dfcb911a5b55b83bdddb
parentc463a964bec391ee9c2735801604e96941a1e33f
test defs: test directory creation more configurable

After this change, the individual tests will be able to tell
`./defs' whether or not to create a temporary test directory
for them, and if yes, whether or not to pre-populate it.
* tests/defs: Only create the temporary test directory if the
variable `$am_create_testdir' is not set to "no".  In this
case, only pre-populate it if that variable is not set to
`$empty'.

* tests/defs-static.in: Check that `$am_create_testdir' is not
exported in the environment.
* tests/self-check-env-sanitize.test: Update.
* tests/self-check-dir.test: Extend, and make deeper and more
robust.
* tests/README (Section "Writing test cases" subsection "Do"):
Update.
* tests/autodist.test: Set `$am_create_testdir' instead of
removing by hand files created by ./defs.
* tests/tap-doc2.test: Likewise.
ChangeLog
tests/README
tests/autodist.test
tests/defs
tests/defs-static.in
tests/self-check-dir.test
tests/self-check-env-sanitize.test
tests/tap-doc2.test