script-new-endpoint.sh 662 B

123456789101112131415161718192021222324
  1. #!/usr/bin/env bash
  2. SCRIPT=`realpath $0`
  3. SCRIPTPATH=`dirname $SCRIPT`
  4. # Move the endpoint to the serverinfo file
  5. cp "$SCRIPTPATH/../caldavtest/serverinfo-new-endpoint.xml" "$SCRIPTPATH/../caldavtest/serverinfo.xml"
  6. # start the server
  7. php -S 127.0.0.1:8888 -t "$SCRIPTPATH/../../../../.." &
  8. sleep 30
  9. # run the tests
  10. cd "$SCRIPTPATH/CalDAVTester"
  11. PYTHONPATH="$SCRIPTPATH/pycalendar/src" python testcaldav.py --print-details-onfail --basedir "$SCRIPTPATH/../caldavtest/" -o cdt.txt \
  12. "CalDAV/current-user-principal.xml" \
  13. "CalDAV/sync-report.xml" \
  14. "CalDAV/sharing-calendars.xml"
  15. RESULT=$?
  16. tail "$/../../../../../data-autotest/nextcloud.log"
  17. exit $RESULT