run-test.sh 473 B

1234567891011121314151617
  1. #!/bin/sh
  2. if [ $1 ] ; then
  3. TESTSCRIPT=$1
  4. else
  5. echo "No test file given" exit
  6. fi
  7. if [ ! -e "$TESTSCRIPT" ] ; then
  8. echo "Test file does not exist"
  9. exit
  10. fi
  11. # sleep is necessary, otherwise the LDAP server cannot be connected to, yet.
  12. setup-scripts/start.sh && sleep 5 && php -f "$TESTSCRIPT"
  13. setup-scripts/stop.sh