From: Pierangelo Masarati Date: Mon, 9 Jan 2006 15:26:40 +0000 (+0000) Subject: allow to easily override the default loop number X-Git-Tag: OPENLDAP_REL_ENG_2_4_BP~381 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=9d66e18c9b3ac8e740aa1577cff375b5b4c1cd5d;p=openldap allow to easily override the default loop number --- 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