1
0

run-test.sh 594 B

1234567891011121314151617181920
  1. #!/bin/sh
  2. #
  3. # SPDX-FileCopyrightText: 2016 Nextcloud GmbH and Nextcloud contributors
  4. # SPDX-License-Identifier: AGPL-3.0-or-later
  5. #
  6. if [ $1 ] ; then
  7. TESTSCRIPT=$1
  8. else
  9. echo "No test file given" exit
  10. fi
  11. if [ ! -e "$TESTSCRIPT" ] ; then
  12. echo "Test file does not exist"
  13. exit
  14. fi
  15. # sleep is necessary, otherwise the LDAP server cannot be connected to, yet.
  16. setup-scripts/start.sh && sleep 5 && php -f "$TESTSCRIPT"
  17. setup-scripts/stop.sh