aboutsummaryrefslogtreecommitdiffstats
path: root/test/test-init.sh
diff options
context:
space:
mode:
authorLukas Fleischer <calcurse@cryptocrack.de>2013-02-26 23:34:29 +0100
committerLukas Fleischer <calcurse@cryptocrack.de>2013-02-27 11:36:28 +0100
commitba2c5c14f6408872ec34a223d131266ab83e4b7d (patch)
tree1eaf195f841fb7fa70e2f4cf729dd841292651f6 /test/test-init.sh
parent5501dae32874bf3f65f7619aa76c6a213bbce321 (diff)
downloadcalcurse-ba2c5c14f6408872ec34a223d131266ab83e4b7d.tar.gz
calcurse-ba2c5c14f6408872ec34a223d131266ab83e4b7d.zip
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 <calcurse@cryptocrack.de>
Diffstat (limited to 'test/test-init.sh')
-rw-r--r--test/test-init.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/test-init.sh b/test/test-init.sh
new file mode 100644
index 0000000..c95c884
--- /dev/null
+++ b/test/test-init.sh
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+CALCURSE=${CALCURSE:-../src/calcurse}
+DATA_DIR=${DATA_DIR:-data/}