0
0
mirror of https://github.com/nextcloud/server.git synced 2024-12-29 16:38:28 +00:00
nextcloud_server/apps/user_ldap/tests/Integration/run-test.sh
Andy Scherzinger 8d8891c5bc
chore: Add SPDX header
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2024-05-30 15:49:33 +02:00

21 lines
594 B
Bash
Executable File

#!/bin/sh
#
# SPDX-FileCopyrightText: 2016 Nextcloud GmbH and Nextcloud contributors
# SPDX-License-Identifier: AGPL-3.0-or-later
#
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