tests/: Add basic iCal import tests

Tests ical-002.sh and ical-003.sh currently fail due to bugs in duration
and exception parsing.

Reported-by: Håkan Jerning <jerning@home.se>
Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
This commit is contained in:
Lukas Fleischer
2014-07-28 12:24:21 +02:00
parent 132cf86a6f
commit 81894cbbd8
7 changed files with 267 additions and 0 deletions

25
test/data/ical-003.ical Normal file
View File

@@ -0,0 +1,25 @@
BEGIN:VCALENDAR
VERSION:2.0
BEGIN:VEVENT
DTSTART:20000101T000000
DURATION:PT1H30M0S
RRULE:FREQ=DAILY;INTERVAL=2;UNTIL=20000201T000000;WKST=SU
EXDATE:20000115T000000,20000123T000000
SUMMARY:Recurring appointment
END:VEVENT
BEGIN:VEVENT
DTSTART:20000101T000000
DURATION:PT1H30M0S
RRULE:FREQ=WEEKLY;INTERVAL=1;UNTIL=20000201T000000;WKST=SU
EXDATE:20000122T000000
SUMMARY:Weekly appointment
END:VEVENT
BEGIN:VEVENT
DTSTART:20000201T000000
DURATION:PT1H30M0S
RRULE:FREQ=DAILY;INTERVAL=2;UNTIL=20000301T000000;WKST=SU
EXDATE:20000215T000000
EXDATE:20000223T000000
SUMMARY:Recurring appointment
END:VEVENT
END:VCALENDAR