Test for the directory structure
Ensure that calcurse uses the right data and configuration directories depending on the conditions. Helped-by: Lars Henriksen <LarsHenriksen@get2net.dk> Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
This commit is contained in:
committed by
Lukas Fleischer
parent
992cf45dc9
commit
4a2f5e2183
12
test/io-003.sh
Executable file
12
test/io-003.sh
Executable file
@@ -0,0 +1,12 @@
|
||||
#!/bin/sh
|
||||
|
||||
. "${TEST_INIT:-./test-init.sh}"
|
||||
home=$(mktemp -d)
|
||||
data="$home/.calcurse"
|
||||
|
||||
mkdir "$data"
|
||||
HOME="$home" "$CALCURSE" -a
|
||||
[ -f "$data/apts" ] && [ -f "$data/conf" ] && failed=0 || failed=1
|
||||
|
||||
rm -rf "$home"
|
||||
exit "$failed"
|
||||
Reference in New Issue
Block a user