diff options
author | Tobias Brox <tobias@redpill-linpro.com> | 2022-01-05 15:21:39 +0100 |
---|---|---|
committer | Tobias Brox <tobias@redpill-linpro.com> | 2022-01-05 15:21:39 +0100 |
commit | 0d34fa108f5669eabbe7df41c1431d203969183c (patch) | |
tree | 0424ba971471e28598a56204a46ff2f4018f0cea /tests/tests.sh | |
parent | 966bc5e941ae5ed913dd2969820c86ff7e000aa1 (diff) | |
download | calendar-cli-0d34fa108f5669eabbe7df41c1431d203969183c.zip |
working on the new cli. Split out the thoughts from the NEXT_LEVEL.md file to an independent NEW_CLI.md
Diffstat (limited to 'tests/tests.sh')
-rwxr-xr-x | tests/tests.sh | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/tests/tests.sh b/tests/tests.sh index a71f8b5..b93d037 100755 --- a/tests/tests.sh +++ b/tests/tests.sh @@ -82,7 +82,7 @@ calendar_cli calendar delete --event-uid=$uid echo "## Same, using kal add ics" kal add ical --ical-file=$tmpfile -#rm $tmpfile +rm $tmpfile calendar_cli --icalendar calendar agenda --from-time=2010-10-13 --agenda-days=1 echo "$output" | grep -q "whole day" || error "could not find the event" echo "$output" | grep -q "20101010" || error "could not find the date" @@ -91,6 +91,19 @@ echo "OK: found the event" echo "## cleanup, delete it" calendar_cli calendar delete --event-uid=$uid +## TODO - procrastinated, waiting for response on https://github.com/dateutil/dateutil/issues/1184 +#echo "## Same, using kal add event" +#kal add event '2010-10-10+4d' 'whole day testing' +#uid=$(echo $output | perl -ne '/uid=(.*)$/ && print $1') +#[ -n "$uid" ] || error "got no UID back" +#calendar_cli --icalendar calendar agenda --from-time=2010-10-13 --agenda-days=1 +#echo "$output" | grep -q "whole day" || error "could not find the event" +#echo "$output" | grep -q "20101010" || error "could not find the date" +#echo "$output" | grep -q "20101010T" && error "a supposed whole day event was found to be with the time of day" +#echo "OK: found the event" +#echo "## cleanup, delete it" +#calendar_cli calendar delete --event-uid=$uid + echo "## A full day event should be implicit when giving dates rather than timestamps" calendar_cli calendar add '2010-10-10+3d' 'whole day testing' uid=$(echo $output | perl -ne '/uid=(.*)$/ && print $1') |