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











                                                                                    
#!/bin/sh

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

HOME="$home" XDG_DATA_HOME="$data" XDG_CONFIG_HOME="$conf" "$CALCURSE" -a
[ -f "$data/calcurse/apts" ] && [ -f "$conf/calcurse/conf" ] && failed=0 || failed=1

rm -rf "$home" "$data" "$conf"
exit "$failed"