1
0

script-old-endpoint.sh 751 B

1234567891011121314151617181920212223242526
  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-old-carddav-endpoint.xml" "$SCRIPTPATH/../caldavtest/serverinfo.xml"
  10. # start the server
  11. php -S 127.0.0.1:8888 -t "$SCRIPTPATH/../../../../.." &
  12. # run the tests
  13. cd "$SCRIPTPATH/CalDAVTester"
  14. PYTHONPATH="$SCRIPTPATH/pycalendar/src" python testcaldav.py --print-details-onfail --basedir "$SCRIPTPATH/../caldavtest/" -o cdt.txt \
  15. "CardDAV/current-user-principal.xml" \
  16. "CardDAV/sync-report.xml"
  17. RESULT=$?
  18. tail "$/../../../../../data-autotest/nextcloud.log"
  19. exit $RESULT