script.sh 523 B

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