1
0

script.sh 614 B

1234567891011121314151617181920212223242526
  1. #!/usr/bin/env bash
  2. #
  3. # SPDX-FileCopyrightText: 2016 ownCloud, Inc.
  4. # SPDX-License-Identifier: AGPL-3.0-only
  5. #
  6. SCRIPT=`realpath $0`
  7. SCRIPTPATH=`dirname $SCRIPT`
  8. # start the server
  9. php -S 127.0.0.1:8888 -t "$SCRIPTPATH/../../../../.." &
  10. sleep 30
  11. # run the tests
  12. cd "$SCRIPTPATH/CalDAVTester"
  13. PYTHONPATH="$SCRIPTPATH/pycalendar/src" python testcaldav.py --print-details-onfail --basedir "$SCRIPTPATH/../caldavtest/" -o cdt.txt \
  14. "CardDAV/current-user-principal.xml" \
  15. "CardDAV/sync-report.xml" \
  16. "CardDAV/sharing-addressbooks.xml"
  17. RESULT=$?
  18. tail "$/../../../../../data-autotest/nextcloud.log"
  19. exit $RESULT