1
0

script-old-endpoint.sh 635 B

1234567891011121314151617181920212223
  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-old-caldav-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. RESULT=$?
  15. tail "$/../../../../../data-autotest/nextcloud.log"
  16. exit $RESULT