script-new-endpoint.sh 791 B

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