script-new-endpoint.sh 826 B

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