X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=tests%2Fscripts%2Ftest036-meta-concurrency;h=958f7842e36ec71384d6a8a0c0e2441d51aca604;hb=3cb9d64de3d2fe9d0e80a9a631335b909f7b64b4;hp=57e28743e1d485d23b99540559a6d0d9764373b4;hpb=838421f416d5e14a71382df71843f327b6aea31a;p=openldap diff --git a/tests/scripts/test036-meta-concurrency b/tests/scripts/test036-meta-concurrency index 57e28743e1..958f7842e3 100755 --- a/tests/scripts/test036-meta-concurrency +++ b/tests/scripts/test036-meta-concurrency @@ -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 " 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