script.sh 516 B

123456789101112131415161718192021
  1. #!/usr/bin/env bash
  2. SCRIPT=`realpath $0`
  3. SCRIPTPATH=`dirname $SCRIPT`
  4. # start the server
  5. php -S 127.0.0.1:8888 -t "$SCRIPTPATH/../../../../.." &
  6. sleep 30
  7. # run the tests
  8. cd "$SCRIPTPATH/CalDAVTester"
  9. PYTHONPATH="$SCRIPTPATH/pycalendar/src" python testcaldav.py --print-details-onfail --basedir "$SCRIPTPATH/../caldavtest/" -o cdt.txt \
  10. "CalDAV/current-user-principal.xml" \
  11. "CalDAV/sync-report.xml" \
  12. "CalDAV/sharing-calendars.xml"
  13. RESULT=$?
  14. tail "$/../../../../../data-autotest/nextcloud.log"
  15. exit $RESULT