summaryrefslogblamecommitdiffstats
path: root/test/io-005.sh
blob: c5ebcc738d8dc31a5392b319b96f416fed0b6de5 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11










                                                                                                         
#!/bin/sh

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

CALCURSE=$(readlink -f "$CALCURSE")
(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"