]> git.sur5r.net Git - openldap/blobdiff - tests/scripts/test036-meta-concurrency
more tests
[openldap] / tests / scripts / test036-meta-concurrency
index 57e28743e1d485d23b99540559a6d0d9764373b4..958f7842e36ec71384d6a8a0c0e2441d51aca604 100755 (executable)
@@ -24,13 +24,14 @@ if test $BACKMETA = metano ; then
 fi
 
 # to be removed some time...
-if test "x$TEST_META" != "xyes" ; then
-       echo "### this test is currently disabled;"
-       echo "### set \"TEST_META=yes\" to enable (at own risk)."
+if test "x$TEST_META" = "xno" ; then
+       echo "### disabled by \"TEST_META=no\"; unset TEST_META to re-enable"
        echo ""
        exit 0
 else
-       echo "### this test is __very__ experimental; enable at own risk"
+       echo "### this test is experimental; in case of problems,"
+       echo "### set \"TEST_META=no\" to disable, and report thru"
+       echo "### the Issue Tracking System <http://www.openldap.org/its/>"
        echo ""
 fi
 
@@ -170,6 +171,13 @@ for f in $TESTDIR/$DATADIR/do_read.* ; do
        echo "ou=Meta,$METABASEDN" >> $f
 done
 
+# add a read that matches a referral in the local database only, 
+# but selects also the remote as candidate; this should be removed 
+# to compare execution times with test008...
+for f in $TESTDIR/$DATADIR/do_read.* ; do
+       echo "cn=Somewhere,ou=Meta,$METABASEDN" >> $f
+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
 RC=$?
@@ -198,7 +206,7 @@ echo "Filtering original ldif used to create database..."
 . $LDIFFILTER < $METACONCURRENCYOUT > $LDIFFLT
 echo "Comparing filter output..."
 $CMP $SEARCHFLT $LDIFFLT > $CMPOUT
-       
+
 if test $? != 0 ; then
        echo "comparison failed - meta search/modification didn't succeed"
        exit 1