server/apps/user_ldap/tests/integration/run-test.sh

18 lines
473 B
Bash
Raw Normal View History

2015-06-29 14:01:06 +00:00
#!/bin/sh
if [ $1 ] ; then
TESTSCRIPT=$1
else
echo "No test file given" exit
fi
if [ ! -e "$TESTSCRIPT" ] ; then
echo "Test file does not exist"
exit
fi
# sleep is necessary, otherwise the LDAP server cannot be connected to, yet.
setup-scripts/start.sh && sleep 2 && php -f "$TESTSCRIPT"
setup-scripts/stop.sh