From e9deb6fff3d56b166ab702828bd1a716c2bf567f Mon Sep 17 00:00:00 2001 From: Lars Henriksen Date: Tue, 7 Apr 2020 21:29:26 +0200 Subject: Extend use of note file for iCal import iCal import to an item note file is extended from DESCRIPTION to LOCATION, COMMENT and STATUS for both events and todos. Addresses GitHub issue #9. Signed-off-by: Lars Henriksen Signed-off-by: Lukas Fleischer --- test/ical-012.sh | 76 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 76 insertions(+) create mode 100755 test/ical-012.sh (limited to 'test/ical-012.sh') diff --git a/test/ical-012.sh b/test/ical-012.sh new file mode 100755 index 0000000..9175db9 --- /dev/null +++ b/test/ical-012.sh @@ -0,0 +1,76 @@ +#!/bin/sh +# Note file creation. Eleven note files are created for 6 apps and 6 todos. +# To produce a fixed, predictable directory listing it is necessary that the +# notes are of different sizes (except for the vevent and vtodo empty note which +# is shared). + +. "${TEST_INIT:-./test-init.sh}" + +if [ "$1" = 'actual' ]; then + mkdir .calcurse && + cp "$DATA_DIR/conf" .calcurse || exit 1 + "$CALCURSE" -D "$PWD/.calcurse" -i "$DATA_DIR/ical-012.ical" + (cd "$PWD/.calcurse/notes/"; cat $(ls -S1)) + rm -rf .calcurse || exit 1 +elif [ "$1" = 'expected' ]; then + cat <