openldap/tests/scripts/all
Kurt Zeilenga eca967ea1d Fixup BDB2 switching. Use 'test' instead of '['. Use '=' instead of '=='.
Use $BACKEND instead of BDB2.  Fallback to LDBM if $BACKEND is not BDB2.
1999-02-08 20:08:25 +00:00

38 lines
616 B
Bash
Executable File

#!/bin/sh
# 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 [ $RC -eq 0 ]; then
echo ">>>>> $CMD completed OK."
else
echo ">>>>> $CMD failed (exit $RC)"
exit $RC
fi
echo ">>>>> waiting 5 seconds for things to exit"
sleep 5
echo
done