1998-08-09 08:43:13 +08:00
|
|
|
#!/bin/sh
|
|
|
|
|
1999-01-15 06:22:45 +08:00
|
|
|
# disable LDAP initialization
|
|
|
|
LDAPNOINIT=true; export LDAPNOINIT
|
|
|
|
|
1998-08-09 08:43:13 +08:00
|
|
|
echo ">>>>> Executing all LDAP tests..."
|
|
|
|
|
1999-02-09 04:08:25 +08:00
|
|
|
if test $# -eq 0 ; then
|
1999-01-10 10:25:41 +08:00
|
|
|
SRCDIR="."
|
1998-08-09 08:43:13 +08:00
|
|
|
else
|
1999-01-10 10:25:41 +08:00
|
|
|
SRCDIR=$1; shift
|
1998-08-09 08:43:13 +08:00
|
|
|
fi
|
1999-02-09 04:08:25 +08:00
|
|
|
|
1999-01-10 10:25:41 +08:00
|
|
|
echo ">>>>> Test Directory: $SRCDIR"
|
|
|
|
|
1999-02-09 04:08:25 +08:00
|
|
|
if test $# -eq 0 ; then
|
|
|
|
BACKEND=ldbm
|
|
|
|
else
|
|
|
|
BACKEND=$1; shift
|
1999-02-08 19:42:14 +08:00
|
|
|
fi
|
|
|
|
|
1999-02-09 04:08:25 +08:00
|
|
|
echo ">>>>> Backend: $BACKEND"
|
|
|
|
|
1999-01-10 10:25:41 +08:00
|
|
|
for CMD in $SRCDIR/scripts/test*; do
|
|
|
|
echo ">>>>> Starting `basename $CMD` ..."
|
1999-02-09 04:08:25 +08:00
|
|
|
$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
|
1998-08-15 07:59:42 +08:00
|
|
|
echo ">>>>> waiting 5 seconds for things to exit"
|
|
|
|
sleep 5
|
1998-08-09 08:43:13 +08:00
|
|
|
echo
|
|
|
|
done
|