script-old-endpoint.sh 799 B

12345678910111213141516171819202122232425262728
  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-old-caldav-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. RESULT=$?
  20. tail "$/../../../../../data-autotest/nextcloud.log"
  21. exit $RESULT