summaryrefslogtreecommitdiff
path: root/tests/test_calendar-cli.sh
diff options
context:
space:
mode:
authorTobias Brox <tobias@redpill-linpro.com>2022-05-29 16:20:39 +0200
committerTobias Brox <tobias@redpill-linpro.com>2022-05-29 16:20:39 +0200
commitfd834cd17933bad5567f1315ddc800145081dcd6 (patch)
tree49692213cc5e9b408ee2cb75bd8b1f622d058746 /tests/test_calendar-cli.sh
parent36fbbe2654d2f73a7583d9538787fd807b781b0e (diff)
downloadcalendar-cli-fd834cd17933bad5567f1315ddc800145081dcd6.zip
some work on the testing script. (This should be cleaned up and made more readable and modular ... but how?)
Diffstat (limited to 'tests/test_calendar-cli.sh')
-rwxr-xr-xtests/test_calendar-cli.sh19
1 files changed, 15 insertions, 4 deletions
diff --git a/tests/test_calendar-cli.sh b/tests/test_calendar-cli.sh
index b3b3920..b45d596 100755
--- a/tests/test_calendar-cli.sh
+++ b/tests/test_calendar-cli.sh
@@ -2,6 +2,11 @@
storage=$(mktemp -d)
+echo "This script will attempt to set up a Radicale server and a Xandikos server and run the test code towards those two servers"
+echo "The test code itself is found in tests.sh"
+
+export RUNTESTSNOPAUSE="foo"
+
echo "########################################################################"
echo "## RADICALE"
echo "########################################################################"
@@ -21,11 +26,17 @@ then
## just get 404 when running tests.
export calendar_cli
export kal
- echo "press enter to run tests"
- read foo
+ if [ -n "$DEBUG" ]
+ then
+ echo "press enter to run tests"
+ read foo
+ fi
./tests.sh
- echo "press enter to take down test server"
- read foo
+ if [ -n "$DEBUG" ]
+ then
+ echo "press enter to take down test server"
+ read foo
+ fi
kill $radicale_pid
sleep 0.3
else