From ba2c5c14f6408872ec34a223d131266ab83e4b7d Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Tue, 26 Feb 2013 23:34:29 +0100 Subject: test/: Add default values for configuration variables Add a small helper script called "test-init.sh" that is sourced in each test case and initializes the CALCURSE and DATA_DIR environment variables. Update the test suite README to point out that setting these environment variables is no longer required. Signed-off-by: Lukas Fleischer --- test/README | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'test/README') diff --git a/test/README b/test/README index f0fd06a..f45fd0b 100644 --- a/test/README +++ b/test/README @@ -16,13 +16,8 @@ when all tests are finished. You can also run tests manually. Test cases are usually shell scripts or binaries. To run an individual test, just invoke the corresponding executable. -Note that some tests require the `CALCURSE` and `DATA_DIR` environment -variables to be set, where `CALCURSE` should point to a valid calcurse binary -and `DATA_DIR` should point to a valid data directory. We usually use the data -directory `data/`, which is contained in the `test/` directory, for test cases: - - $ CALCURSE=../src/calcurse DATA_DIR=data/ ./next-001.sh - Running ./next-001.sh... ok +The `CALCURSE` and `DATA_DIR` environment variables can be used to specify an +alternative calcurse binary and data directory. Passing another data directory might cause some failures since many tests are adapted for the `test/` directory provided by the test suite: -- cgit v1.2.3-70-g09d2