summaryrefslogtreecommitdiffstats
path: root/apps/user_ldap/tests/Integration/run-test.sh
diff options
context:
space:
mode:
Diffstat (limited to 'apps/user_ldap/tests/Integration/run-test.sh')
-rwxr-xr-xapps/user_ldap/tests/Integration/run-test.sh17
1 files changed, 17 insertions, 0 deletions
diff --git a/apps/user_ldap/tests/Integration/run-test.sh b/apps/user_ldap/tests/Integration/run-test.sh
new file mode 100755
index 00000000000..7a29db25670
--- /dev/null
+++ b/apps/user_ldap/tests/Integration/run-test.sh
@@ -0,0 +1,17 @@
+#!/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 5 && php -f "$TESTSCRIPT"
+setup-scripts/stop.sh