summaryrefslogtreecommitdiffstats
path: root/test/appointment-007.sh
diff options
context:
space:
mode:
authorLukas Fleischer <calcurse@cryptocrack.de>2013-02-26 22:17:29 +0100
committerLukas Fleischer <calcurse@cryptocrack.de>2013-02-27 11:36:28 +0100
commit5501dae32874bf3f65f7619aa76c6a213bbce321 (patch)
treed5edc81f68f860aba6dd580eefd8c6ea393ec605 /test/appointment-007.sh
parent3d7fdaec584ad7080d187b8aa53c6546d9c1d8d7 (diff)
downloadcalcurse-5501dae32874bf3f65f7619aa76c6a213bbce321.tar.gz
calcurse-5501dae32874bf3f65f7619aa76c6a213bbce321.zip
test/: Add a couple of black-box tests for items
This introduces five test suite failures which will be fixed in one of the following patches. Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
Diffstat (limited to 'test/appointment-007.sh')
-rwxr-xr-xtest/appointment-007.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/appointment-007.sh b/test/appointment-007.sh
new file mode 100755
index 0000000..a097e02
--- /dev/null
+++ b/test/appointment-007.sh
@@ -0,0 +1,14 @@
+#!/bin/sh
+
+if [ "$1" = 'actual' ]; then
+ "$CALCURSE" --read-only -D "$DATA_DIR"/ -c "$DATA_DIR/apts-appointment-007" \
+ -d02/23/2013
+elif [ "$1" = 'expected' ]; then
+ cat <<EOD
+02/23/13:
+ - 10:00 -> 12:00
+ Appointment
+EOD
+else
+ ./run-test "$0"
+fi