openldap/tests/scripts/all
Kurt Spanier 42f6e78dd4 Integration of the BDB2 backend into the new init/startup/shutdown schema.
Integration into ./configure ( --enable-bdb2 ).
Adaptation of the test-suite ( 'make' -> ldbm; 'make bdb2-local' -> bdb2 ).
Minor fixes in slapd/libldbm.
1999-02-08 11:42:14 +00:00

37 lines
646 B
Bash
Executable file

#!/bin/sh
# disable LDAP initialization
LDAPNOINIT=true; export LDAPNOINIT
echo ">>>>> Executing all LDAP tests..."
if [ $# -eq 0 ]; then
SRCDIR="."
else
SRCDIR=$1; shift
fi
echo ">>>>> Test Directory: $SRCDIR"
if [ $# -eq 1 ]; then
BDB2=$1; shift
if [ "$BDB2" == "ldbm" ]; then
echo ">>>>> LDBM mode"
else
echo ">>>>> BDB2 mode"
fi
fi
for CMD in $SRCDIR/scripts/test*; do
echo ">>>>> Starting `basename $CMD` ..."
$CMD $SRCDIR $BDB2
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