openldap/tests/scripts/all

38 lines
616 B
Plaintext
Raw Normal View History

1998-08-09 08:43:13 +08:00
#!/bin/sh
# disable LDAP initialization
LDAPNOINIT=true; export LDAPNOINIT
1998-08-09 08:43:13 +08:00
echo ">>>>> Executing all LDAP tests..."
if test $# -eq 0 ; then
SRCDIR="."
1998-08-09 08:43:13 +08:00
else
SRCDIR=$1; shift
1998-08-09 08:43:13 +08:00
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
1998-08-09 08:43:13 +08:00
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
1998-08-09 08:43:13 +08:00
echo
done