]> git.sur5r.net Git - openldap/commitdiff
cleanup test
authorPierangelo Masarati <ando@openldap.org>
Wed, 24 May 2006 09:43:05 +0000 (09:43 +0000)
committerPierangelo Masarati <ando@openldap.org>
Wed, 24 May 2006 09:43:05 +0000 (09:43 +0000)
tests/data/sql-concurrency/do_bind.0 [new file with mode: 0644]
tests/scripts/sql-test001-concurrency

diff --git a/tests/data/sql-concurrency/do_bind.0 b/tests/data/sql-concurrency/do_bind.0
new file mode 100644 (file)
index 0000000..e0d0481
--- /dev/null
@@ -0,0 +1,2 @@
+cn=Mitya Kovalev,dc=example,dc=com
+mit
index f5e6655495ed865a4052fe455314ae7d71a74425..0c85c476e46c012c2943dd3af0627cfefe558096 100755 (executable)
@@ -26,6 +26,16 @@ if test $RDBMS = "rdbmsno" ; then
        exit 0
 fi
 
+if test "x$LOOPS" = "x" ; then
+       LOOPS=5
+fi
+
+if test "x$CHILDREN" = "x" ; then
+       CHILDREN="-j 4"
+else
+       CHILDREN="-j $CHILDREN"
+fi
+
 SQLDATADIR=$TESTDIR/sql-concurrency
 mkdir -p $TESTDIR $SQLDATADIR
 
@@ -74,7 +84,7 @@ echo "Filtering original ldif used to create database..."
 if test "${RDBMSWRITE}" != "yes"; then
        echo "write test disabled for ${RDBMS}; set SLAPD_USE_SQLWRITE=yes to enable"
        cp $SQLCONCURRENCYDIR/do_read* $SQLCONCURRENCYDIR/do_search* \
-               $SQLDATADIR
+               $SQLCONCURRENCYDIR/do_bind* $SQLDATADIR
 else
        case ${RDBMS} in
                # list here the RDBMSes whose mapping allows writes
@@ -84,14 +94,15 @@ else
        *)
                echo "write is not supported for ${RDBMS}; performing read-only concurrency test"
                cp $SQLCONCURRENCYDIR/do_read* $SQLCONCURRENCYDIR/do_search* \
-                       $SQLDATADIR
+                       $SQLCONCURRENCYDIR/do_bind* $SQLDATADIR
                ;;
        esac
 fi
 
 echo "Using tester for concurrent server access..."
 $SLAPDTESTER -P "$PROGDIR" -d "$SQLDATADIR" \
-       -h $LOCALHOST -p $PORT1 -D "$MANAGERDN" -w $PASSWD -l 5 -j 4
+       -h $LOCALHOST -p $PORT1 -D "$MANAGERDN" -w $PASSWD \
+       -l $LOOPS $CHILDREN -FF
 RC=$?
 
 if test $RC != 0 ; then