diff options
author | Tobias Brox <tobias@redpill-linpro.com> | 2020-06-05 01:15:38 +0200 |
---|---|---|
committer | Tobias Brox <tobias@redpill-linpro.com> | 2020-06-05 01:15:38 +0200 |
commit | 202825548178e61e2abc0d956ae386bb250cc919 (patch) | |
tree | 77e03a2813997169389d63675083d9e37e2430cd /tests/test_calendar-cli.sh | |
parent | 863bf6f280d6d714c46deb55c93e99106083e8cc (diff) | |
download | calendar-cli-202825548178e61e2abc0d956ae386bb250cc919.zip |
make it possible to create a calendar, resolves https://github.com/tobixen/calendar-cli/issues/69 - automated tests towards radicale, ref https://github.com/tobixen/calendar-cli/issues/68
Diffstat (limited to 'tests/test_calendar-cli.sh')
-rwxr-xr-x | tests/test_calendar-cli.sh | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/tests/test_calendar-cli.sh b/tests/test_calendar-cli.sh new file mode 100755 index 0000000..be2717e --- /dev/null +++ b/tests/test_calendar-cli.sh @@ -0,0 +1,29 @@ +#!/bin/bash + +######################################################################## +## RADICALE +######################################################################## +storage=$(mktemp -d) +python3 -m radicale --storage-filesystem-folder=$storage & +sleep 0.3 +jobs -l +radicale_pid=$(jobs -l | perl -ne '/^\[\d+\]\+\s+(\d+)\s+Running/ && print $1') +if [ -n "$radicale_pid" ] +then + echo "## Radicale now running on pid $radicale_pid" + calendar_cli="../calendar-cli --caldav-url=http://localhost:5232/ --caldav-user=testuser --calendar-url=/testuser/calendar-cli-test-calendar" + $calendar_cli calendar create calendar-cli-test-calendar + export calendar_cli + ./tests.sh + kill $radicale_pid + rm -rf $storage +else + echo "## Could not start up radicale (is it installed?). Will skip running tests towards radicale" +fi + + +######################################################################## +## XANDIKOS +######################################################################## +## TODO! work in progress + |