mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-27 03:20:22 +08:00
39 lines
634 B
Bash
Executable File
39 lines
634 B
Bash
Executable File
#! /bin/sh
|
|
# $OpenLDAP$
|
|
|
|
# disable LDAP initialization
|
|
LDAPNOINIT=true; export LDAPNOINIT
|
|
|
|
echo ">>>>> Executing all LDAP tests..."
|
|
|
|
if test $# -eq 0 ; then
|
|
SRCDIR="."
|
|
else
|
|
SRCDIR=$1; shift
|
|
fi
|
|
|
|
echo ">>>>> Test Directory: $SRCDIR"
|
|
|
|
if test $# -eq 0 ; then
|
|
BACKEND=ldbm
|
|
else
|
|
BACKEND=$1; shift
|
|
fi
|
|
|
|
echo ">>>>> Backend: $BACKEND"
|
|
|
|
for CMD in $SRCDIR/scripts/test*; do
|
|
echo ">>>>> Starting `basename $CMD` ..."
|
|
$CMD $SRCDIR $BACKEND
|
|
RC=$?
|
|
if test $RC -eq 0 ; then
|
|
echo ">>>>> $CMD completed OK."
|
|
else
|
|
echo ">>>>> $CMD failed (exit $RC)"
|
|
exit $RC
|
|
fi
|
|
echo ">>>>> waiting 10 seconds for things to exit"
|
|
sleep 10
|
|
echo
|
|
done
|