summaryrefslogtreecommitdiffstats
path: root/test/io-004.sh
diff options
context:
space:
mode:
Diffstat (limited to 'test/io-004.sh')
-rwxr-xr-xtest/io-004.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/io-004.sh b/test/io-004.sh
new file mode 100755
index 0000000..cae71b3
--- /dev/null
+++ b/test/io-004.sh
@@ -0,0 +1,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"