]> git.sur5r.net Git - openldap/blobdiff - tests/scripts/test036-meta-concurrency
s/ldap_sync.h/ldap.h/
[openldap] / tests / scripts / test036-meta-concurrency
index 371ba41c06118c1d1693aa9f7011340e289b8ea2..8f95c7eb894c4f4c0bbda5371efd194bf841fc9c 100755 (executable)
@@ -23,6 +23,11 @@ if test $BACKMETA = metano ; then
        exit 0
 fi
 
+if test $BACKLDAP = ldapno ; then 
+       echo "ldap backend not available, test skipped"
+       exit 0
+fi
+
 if test x$TESTLOOPS = x ; then
        TESTLOOPS=50
 fi
@@ -184,8 +189,12 @@ for f in $TESTDIR/$DATADIR/do_bind.* ; do
        echo "" >> $f
 done
 
+# fix test data to include back-monitor, if available
+# NOTE: copies do_* files from $TESTDIR/$DATADIR to $TESTDIR
+$MONITORDATA "$MONITORDB" "$TESTDIR/$DATADIR" "$TESTDIR"
+
 echo "Using tester for concurrent server access..."
-$SLAPDTESTER -P "$PROGDIR" -d "$TESTDIR/$DATADIR" -h $LOCALHOST -p $PORT3 \
+$SLAPDTESTER -P "$PROGDIR" -d "$TESTDIR" -h $LOCALHOST -p $PORT3 \
        -D "cn=Manager,$METABASEDN" -w $PASSWD -l $TESTLOOPS -r 20 -FF \
        -i '!REFERRAL'
 RC=$?