aboutsummaryrefslogtreecommitdiffstats
path: root/test/io-005.sh
blob: 6b03908ee996133dbeb4547380d5ed8c6fbb6070 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
#!/bin/sh

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

(unset -v XDG_DATA_HOME XDG_CONFIG_HOME; HOME="$home" "$CALCURSE" -a)
[ -f "$home/.local/share/calcurse/apts" ] && [ -f "$home/.config/calcurse/conf" ] && failed=0 || failed=1

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