]> git.sur5r.net Git - openldap/commitdiff
allow easy customization of amount of loops
authorPierangelo Masarati <ando@openldap.org>
Sat, 19 Jul 2008 11:54:01 +0000 (11:54 +0000)
committerPierangelo Masarati <ando@openldap.org>
Sat, 19 Jul 2008 11:54:01 +0000 (11:54 +0000)
tests/scripts/test008-concurrency

index c8a34bb80d244c9a3918e839275c024dc4c302a2..689e5b21567e00aab6bf4f137ebcfdcef1009bbe 100755 (executable)
 echo "running defines.sh"
 . $SRCDIR/scripts/defines.sh
 
+if test x$LOOPS = x ; then
+       LOOPS=50
+fi
+
 mkdir -p $TESTDIR $DBDIR1
 
 echo "Running slapadd to build slapd database..."
@@ -51,7 +55,7 @@ for i in 0 1 2 3 4 5; do
 done
 
 echo "Using tester for concurrent server access..."
-time $SLAPDTESTER -P "$PROGDIR" -d "$DATADIR" -h $LOCALHOST -p $PORT1 -D "$MANAGERDN" -w $PASSWD -l 50
+time $SLAPDTESTER -P "$PROGDIR" -d "$DATADIR" -h $LOCALHOST -p $PORT1 -D "$MANAGERDN" -w $PASSWD -l $LOOPS
 #$SLAPDTESTER -P "$PROGDIR" -d "$DATADIR" -h $LOCALHOST -p $PORT1 -D "$MANAGERDN" -w $PASSWD -l 50
 RC=$?