exit 0
fi
+if test x$TESTLOOPS = x ; then
+ TESTLOOPS=50
+fi
+
mkdir -p $TESTDIR $DBDIR1
#
# Perform a basic single threaded search on a single connection
THR=1
OUTER=1
-INNER=50000
+INNER=`expr $TESTLOOPS \* 1000`
echo "Testing basic mt-hot search: $THR threads ($OUTER x $INNER) loops..."
echo $SLAPDMTREAD -H $URI1 -D "$MANAGERDN" -w $PASSWD \
-e "$MONITORDN" \
# Perform a basic multi-threaded search on a single connection
THR=5
OUTER=1
-INNER=10000
+INNER=`expr $TESTLOOPS \* 200`
echo "Testing basic mt-hot search: $THR threads ($OUTER x $INNER) loops..."
echo $SLAPDMTREAD -H $URI1 -D "$MANAGERDN" -w $PASSWD \
-e "$MONITORDN" \
# Perform a basic multi-threaded search on a single connection
THR=100
OUTER=5
-INNER=100
+INNER=`expr $TESTLOOPS \* 2`
echo "Testing basic mt-hot search: $THR threads ($OUTER x $INNER) loops..."
echo $SLAPDMTREAD -H $URI1 -D "$MANAGERDN" -w $PASSWD \
-e "$MONITORDN" \
echo "Random searches"
THR=1
OUTER=1
-INNER=50000
+INNER=`expr $TESTLOOPS \* 1000`
echo "Testing random mt-hot search: $THR threads ($OUTER x $INNER) loops..."
echo $SLAPDMTREAD -H $URI1 -D "$MANAGERDN" -w $PASSWD \
-e "$BASEDN" -f "(objectclass=*)" \
# Perform a multi-threaded random DB search on a single connection
THR=5
OUTER=1
-INNER=10000
+INNER=`expr $TESTLOOPS \* 200`
echo "Testing random mt-hot search: $THR threads ($OUTER x $INNER) loops..."
echo $SLAPDMTREAD -H $URI1 -D "$MANAGERDN" -w $PASSWD \
-e "$BASEDN" -f "(objectclass=*)" \
# Perform a multi-threaded random DB search on a single connection
THR=100
OUTER=5
-INNER=100
+INNER=`expr $TESTLOOPS \* 2`
echo "Testing random mt-hot search: $THR threads ($OUTER x $INNER) loops..."
echo $SLAPDMTREAD -H $URI1 -D "$MANAGERDN" -w $PASSWD \
-e "$BASEDN" -f "(objectclass=*)" \
CONN=5
THR=5
OUTER=1
-INNER=10000
+INNER=`expr $TESTLOOPS \* 200`
echo "Testing basic mt-hot search: $THR threads $CONN conns ($OUTER x $INNER) loops..."
echo $SLAPDMTREAD -H $URI1 -D "$MANAGERDN" -w $PASSWD \
-e "$MONITORDN" \
CONN=5
THR=50
OUTER=5
-INNER=1000
+INNER=`expr $TESTLOOPS \* 20`
echo "Testing basic mt-hot search: $THR threads $CONN conns ($OUTER x $INNER) loops..."
echo $SLAPDMTREAD -H $URI1 -D "$MANAGERDN" -w $PASSWD \
-e "$MONITORDN" \
CONN=5
THR=100
OUTER=5
-INNER=100
+INNER=`expr $TESTLOOPS \* 2`
echo "Testing random mt-hot search: $THR threads $CONN conns ($OUTER x $INNER) loops..."
echo $SLAPDMTREAD -H $URI1 -D "$MANAGERDN" -w $PASSWD \
-e "$BASEDN" -f "(objectclass=*)" \
THR=10
WTHR=10
OUTER=5
-INNER=100
+INNER=`expr $TESTLOOPS \* 2`
echo "Testing random mt-hot r/w search: $THR read threads $WTHR write threads $CONN conns ($OUTER x $INNER) loops..."
echo $SLAPDMTREAD -H $URI1 -D "$MANAGERDN" -w $PASSWD \
-e "$BASEDN" -f "(&(!(cn=rwtest*))(objectclass=*))" \
THR=10
WTHR=10
OUTER=5
-INNER=100
+INNER=`expr $TESTLOOPS \* 2`
echo "Testing random mt-hot r/w search: $THR read threads $WTHR write threads $CONN conns ($OUTER x $INNER) loops..."
echo $SLAPDMTREAD -H $URI1 -D "$MANAGERDN" -w $PASSWD \
-e "$BASEDN" -f "(&(!(cn=rwtest*))(objectclass=*))" \