1
0

script-new-endpoint.sh 669 B

12345678910111213141516171819202122232425
  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-new-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. "CardDAV/current-user-principal.xml" \
  13. "CardDAV/sync-report.xml" \
  14. "CardDAV/sharing-addressbooks.xml"
  15. RESULT=$?
  16. tail "$/../../../../../data-autotest/nextcloud.log"
  17. exit $RESULT