aboutsummaryrefslogblamecommitdiffstats
path: root/test/io-006.sh
blob: 4184d9f1d8be0d478e38cb7be27c2e9eeb50abb5 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12











                                                                                    
#!/bin/sh

. "${TEST_INIT:-./test-init.sh}"
dir=$(mktemp -d)

CALCURSE=$(readlink -f "$CALCURSE")
cd "$dir"
(unset -v HOME XDG_DATA_HOME XDG_CONFIG_HOME; "$CALCURSE" -a)
[ -f "$dir/.calcurse/apts" ] && [ -f "$dir/.calcurse/conf" ] && failed=0 || failed=1

rm -rf "$dir"
exit "$failed"