From 94234abcce0cb9fd030fa0d493b440cc3b83e4d5 Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Sat, 19 Jul 2008 11:54:01 +0000 Subject: [PATCH] allow easy customization of amount of loops --- tests/scripts/test008-concurrency | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/scripts/test008-concurrency b/tests/scripts/test008-concurrency index c8a34bb80d..689e5b2156 100755 --- a/tests/scripts/test008-concurrency +++ b/tests/scripts/test008-concurrency @@ -16,6 +16,10 @@ 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=$? -- 2.39.5