1999-04-21 13:59:01 +08:00
|
|
|
#! /bin/sh
|
1999-09-02 08:52:43 +08:00
|
|
|
# $OpenLDAP$
|
1998-08-09 08:43:13 +08:00
|
|
|
|
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
|
2002-01-16 01:26:44 +08:00
|
|
|
BACKEND=bdb
|
1999-02-09 04:08:25 +08:00
|
|
|
else
|
|
|
|
BACKEND=$1; shift
|
1999-02-08 19:42:14 +08:00
|
|
|
fi
|
|
|
|
|
1999-02-09 04:08:25 +08:00
|
|
|
echo ">>>>> Backend: $BACKEND"
|
|
|
|
|
2002-06-19 14:00:48 +08:00
|
|
|
if test $# -eq 0 ; then
|
|
|
|
MONITOR=no
|
|
|
|
else
|
|
|
|
MONITOR=$1; shift
|
|
|
|
fi
|
|
|
|
|
2002-02-11 07:49:57 +08:00
|
|
|
SHTOOL="$SRCDIR/../build/shtool"
|
|
|
|
|
|
|
|
TB=`$SHTOOL echo -e "%B"`
|
|
|
|
TN=`$SHTOOL echo -e "%b"`
|
|
|
|
|
1999-01-10 10:25:41 +08:00
|
|
|
for CMD in $SRCDIR/scripts/test*; do
|
2002-02-11 07:49:57 +08:00
|
|
|
echo ">>>>> Starting ${TB}`basename $CMD`${TN} ..."
|
2002-06-19 14:00:48 +08:00
|
|
|
$CMD $SRCDIR $BACKEND $MONITOR
|
1998-08-09 08:43:13 +08:00
|
|
|
RC=$?
|
1999-04-21 13:59:01 +08:00
|
|
|
if test $RC -eq 0 ; then
|
2002-02-11 07:49:57 +08:00
|
|
|
echo ">>>>> $CMD completed ${TB}OK${TN}."
|
1998-08-09 08:43:13 +08:00
|
|
|
else
|
2002-02-11 07:49:57 +08:00
|
|
|
echo ">>>>> $CMD ${TB}failed${TN} (exit $RC)"
|
1998-08-09 08:43:13 +08:00
|
|
|
exit $RC
|
|
|
|
fi
|
1999-08-04 05:46:44 +08:00
|
|
|
echo ">>>>> waiting 10 seconds for things to exit"
|
1999-08-04 05:47:35 +08:00
|
|
|
sleep 10
|
2002-02-11 07:49:57 +08:00
|
|
|
echo ""
|
1998-08-09 08:43:13 +08:00
|
|
|
done
|