version 1.24, 2002/01/21 05:35:04
|
version 1.24.2.2, 2002/09/01 22:02:30
|
Line 1
|
Line 1
|
#! /bin/sh |
#! /bin/sh |
# $OpenLDAP: pkg/ldap/tests/scripts/test008-concurrency,v 1.23 2002/01/15 16:26:51 kurt Exp $ |
# $OpenLDAP: pkg/ldap/tests/scripts/test008-concurrency,v 1.24.2.1 2002/06/20 20:12:35 kurt Exp $ |
|
|
SRCDIR="." |
SRCDIR="." |
if test $# -ge 1 ; then |
if test $# -ge 1 ; then |
Line 9 BACKEND=bdb
|
Line 9 BACKEND=bdb
|
if test $# -ge 1 ; then |
if test $# -ge 1 ; then |
BACKEND=$1; shift |
BACKEND=$1; shift |
fi |
fi |
|
MONITORDB=no |
|
if test $# -ge 1 ; then |
|
MONITORDB=$1; shift |
|
fi |
WAIT=0 |
WAIT=0 |
if test $# -ge 1 ; then |
if test $# -ge 1 ; then |
WAIT=1; shift |
WAIT=1; shift |
Line 24 echo "Cleaning up in $DBDIR..."
|
Line 28 echo "Cleaning up in $DBDIR..."
|
rm -f $DBDIR/[!C]* |
rm -f $DBDIR/[!C]* |
|
|
echo "Running slapadd to build slapd database..." |
echo "Running slapadd to build slapd database..." |
. $CONFFILTER $BACKEND < $CONF > $DBCONF |
. $CONFFILTER $BACKEND $MONITORDB < $CONF > $DBCONF |
$SLAPADD -f $DBCONF -l $LDIFORDERED |
$SLAPADD -f $DBCONF -l $LDIFORDERED |
RC=$? |
RC=$? |
if test $RC != 0 ; then |
if test $RC != 0 ; then |
Line 48 for i in 0 1 2 3 4 5; do
|
Line 52 for i in 0 1 2 3 4 5; do
|
$LDAPSEARCH -s base -b "$MONITOR" -h $LOCALHOST -p $PORT \ |
$LDAPSEARCH -s base -b "$MONITOR" -h $LOCALHOST -p $PORT \ |
'objectclass=*' > /dev/null 2>&1 |
'objectclass=*' > /dev/null 2>&1 |
RC=$? |
RC=$? |
if test $RC = 1 ; then |
if test $RC = 0 ; then |
echo "Waiting 5 seconds for slapd to start..." |
break |
sleep 5 |
|
fi |
fi |
|
echo "Waiting 5 seconds for slapd to start..." |
|
sleep 5 |
done |
done |
|
|
echo "Using tester for concurrent server access..." |
echo "Using tester for concurrent server access..." |