1 2 3 4 5 6 7 8 9 10 11 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"