From 9d66e18c9b3ac8e740aa1577cff375b5b4c1cd5d Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Mon, 9 Jan 2006 15:26:40 +0000 Subject: [PATCH] allow to easily override the default loop number --- tests/scripts/test036-meta-concurrency | 6 +++++- tests/scripts/test039-glue-ldap-concurrency | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/tests/scripts/test036-meta-concurrency b/tests/scripts/test036-meta-concurrency index 329b8a1402..72c7f2ed87 100755 --- a/tests/scripts/test036-meta-concurrency +++ b/tests/scripts/test036-meta-concurrency @@ -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 diff --git a/tests/scripts/test039-glue-ldap-concurrency b/tests/scripts/test039-glue-ldap-concurrency index 4210777741..9eee1ab401 100755 --- a/tests/scripts/test039-glue-ldap-concurrency +++ b/tests/scripts/test039-glue-ldap-concurrency @@ -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 -- 2.39.5