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/appointment-013.sh | 2 ++ 1 file changed, 2 insertions(+) (limited to 'test/appointment-013.sh') diff --git a/test/appointment-013.sh b/test/appointment-013.sh index 5ab608f..b820a31 100755 --- a/test/appointment-013.sh +++ b/test/appointment-013.sh @@ -1,5 +1,7 @@ #!/bin/sh +. ./test-init.sh + "$CALCURSE" --read-only -D "$DATA_DIR"/ -c "$DATA_DIR/apts-appointment-013" \ -d02/23/2013 2>errors && exit 1 grep -Fq 'syntax error in item time or duration' errors -- cgit v1.2.3