2015-06-29 10:01:06 -04:00
|
|
|
#!/bin/sh
|
2024-05-29 05:32:54 -04:00
|
|
|
#
|
|
|
|
|
# SPDX-FileCopyrightText: 2016 Nextcloud GmbH and Nextcloud contributors
|
|
|
|
|
# SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
|
#
|
2015-06-29 10:01:06 -04:00
|
|
|
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.
|
2015-07-06 17:07:33 -04:00
|
|
|
setup-scripts/start.sh && sleep 5 && php -f "$TESTSCRIPT"
|
2015-06-29 10:01:06 -04:00
|
|
|
setup-scripts/stop.sh
|