allow to easily override the default loop number

This commit is contained in:
Pierangelo Masarati 2006-01-09 15:26:40 +00:00
parent 543c588772
commit 9d66e18c9b
2 changed files with 10 additions and 2 deletions

View File

@ -35,6 +35,10 @@ else
echo ""
fi
if test x$TESTLOOPS = x ; then
TESTLOOPS=50
fi
rm -rf $TESTDIR
mkdir -p $TESTDIR $DBDIR1 $DBDIR2
@ -186,7 +190,7 @@ done
echo "Using tester for concurrent server access..."
$SLAPDTESTER -P "$PROGDIR" -d "$TESTDIR/$DATADIR" -h $LOCALHOST -p $PORT3 \
-D "cn=Manager,$METABASEDN" -w $PASSWD -l 50 -r 20 -F
-D "cn=Manager,$METABASEDN" -w $PASSWD -l $TESTLOOPS -r 20 -F
RC=$?
if test $RC != 0 ; then

View File

@ -28,6 +28,10 @@ if test $RWM = rwmno ; then
exit 0
fi
if test x$TESTLOOPS = x ; then
TESTLOOPS=50
fi
rm -rf $TESTDIR
mkdir -p $TESTDIR $DBDIR1 $DBDIR2
@ -163,7 +167,7 @@ done
echo "Using tester for concurrent server access..."
$SLAPDTESTER -P "$PROGDIR" -d "$TESTDIR/$DATADIR" -h $LOCALHOST -p $PORT3 \
-D "cn=Manager,$METABASEDN" -w $PASSWD -l 50 -r 20 -F
-D "cn=Manager,$METABASEDN" -w $PASSWD -l $TESTLOOPS -r 20 -F
RC=$?
if test $RC != 0 ; then