1
0

script-old-endpoint.sh 629 B

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