|
New macro AT_DBRW_INIT ensures the test database is initialized.
When finished, it creates the file .TESTINIT if the initialization
succeeded or FAILURE, if it did not. The latter contains the
error output from initdb. These files are then used to decide whether
to proceed with the tests.
All tests include this macro at the very beginning.
* tests/Makefile.am (CLEANFILES): Add files.
* tests/atlocal.in (INITFILE, FAILFILE): New variables.
* tests/initdb.at: Rewrite as a new define AT_DBRW_INITDB.
* tests/exact01.at: Include AT_DBRW_INIT at the start,
Use AT_DBINIT_PREREQ
* tests/testsuite.at (AT_DBRW_INIT, AT_DBINIT_PREREQ): New macros.
* tests/rewrite01.at: Likewise.
* tests/rewrite02.at: Likewise.
* tests/rewrite03.at: Likewise.
* tests/rewrite04.at: Likewise.
* tests/rewrite05.at: Likewise.
* tests/rewrite06.at: Likewise.
|