summaryrefslogtreecommitdiffstats
path: root/test/test-init.sh
Commit message (Collapse)AuthorAgeFilesLines
* Do not use readlink(1) in testsLukas Fleischer2021-04-031-0/+5
| | | | | | | | | | | | | Avoid using readlink(1) which is not POSIX-compatible; moreover, `readlink -f` is not available on Mac OS by default. Instead, always convert $CALCURSE to an absolute path (that may or may not be canonical, i.e., be a symlink or contain ../ as component) in test-init.sh by prepending the current working directory if the original path is relative. While not fully equivalent to `readlink -f`, this should be good enough for use in our tests. Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
* test/: Add default values for configuration variablesLukas Fleischer2013-02-271-0/+4
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>