Diff for /tests/scripts/test036-meta-concurrency between versions 1.2 and 1.3

version 1.2, 2005/04/21 01:24:15 version 1.3, 2005/04/21 08:30:54
Line 1 Line 1
 #! /bin/sh  #! /bin/sh
 # $OpenLDAP: pkg/ldap/tests/scripts/test036-meta-concurrency,v 1.1 2005/04/20 16:57:37 ando Exp $  # $OpenLDAP: pkg/ldap/tests/scripts/test036-meta-concurrency,v 1.2 2005/04/21 01:24:15 ando Exp $
 ## This work is part of OpenLDAP Software <http://www.openldap.org/>.  ## This work is part of OpenLDAP Software <http://www.openldap.org/>.
 ##  ##
 ## Copyright 1998-2005 The OpenLDAP Foundation.  ## Copyright 1998-2005 The OpenLDAP Foundation.
Line 23  if test $BACKMETA = metano ; then Line 23  if test $BACKMETA = metano ; then
         exit 0          exit 0
 fi  fi
   
   # to be removed some time...
 if test "x$TEST_META" != "xyes" ; then  if test "x$TEST_META" != "xyes" ; then
         echo "### this test is currently disabled;"          echo "### this test is currently disabled;"
         echo "### set \"TEST_META=yes\" to enable (at own risk)."          echo "### set \"TEST_META=yes\" to enable (at own risk)."
           echo ""
         exit 0          exit 0
 else  else
         echo "### this test is __very__ experimental; enable at own risk"          echo "### this test is __very__ experimental; enable at own risk"
           echo ""
 fi  fi
   
 rm -rf $TESTDIR  rm -rf $TESTDIR
   
 mkdir -p $TESTDIR $DBDIR1 $DBDIR2  mkdir -p $TESTDIR $DBDIR1 $DBDIR2
   
 if test "x$DB_CONFIG" != "x" -a -f $DB_CONFIG ; then  # NOTE: this could be added to all tests...
         echo "==> using DB_CONFIG $DB_CONFIG"  if test "$BACKEND" = "bdb" -o "$BACKEND" = "hdb" ; then
         cp $DB_CONFIG $DBDIR1          if test "x$DB_CONFIG" != "x" ; then \
         cp $DB_CONFIG $DBDIR2                  if test -f $DB_CONFIG ; then
 else                          echo "==> using DB_CONFIG \"$DB_CONFIG\""
         echo "==> set \"DB_CONFIG\" to the location of the DB_CONFIG file"                          cp $DB_CONFIG $DBDIR1
         echo "==> you want to use for the test."                          cp $DB_CONFIG $DBDIR2
                   else
                           echo "==> DB_CONFIG must point to a valid file (ignored)"
                   fi
           else
                   echo "==> set \"DB_CONFIG\" to the DB_CONFIG file you want to use for the test."
           fi
           echo ""
 fi  fi
   
 echo "Starting slapd on TCP/IP port $PORT1..."  echo "Starting slapd on TCP/IP port $PORT1..."
Line 126  for f in $DATADIR/do_* ; do Line 136  for f in $DATADIR/do_* ; do
         sed -e "s;$BASEDN;$METABASEDN;" $f > $TESTDIR/$f          sed -e "s;$BASEDN;$METABASEDN;" $f > $TESTDIR/$f
 done  done
   
   # add a read that matches only the local database, 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  for f in $TESTDIR/$DATADIR/do_read.* ; do
         echo "ou=Meta,$METABASEDN" >> $f          echo "ou=Meta,$METABASEDN" >> $f
 done  done
   
 echo "Using tester for concurrent server access..."  echo "Using tester for concurrent server access..."
 $SLAPDTESTER -P "$PROGDIR" -d "$TESTDIR/$DATADIR" -h $LOCALHOST -p $PORT2 -D "cn=Manager,$METABASEDN" -w $PASSWD -l 100 -r 20  $SLAPDTESTER -P "$PROGDIR" -d "$TESTDIR/$DATADIR" -h $LOCALHOST -p $PORT2 -D "cn=Manager,$METABASEDN" -w $PASSWD -l 50 # -r 20
 RC=$?  RC=$?
   
 if test $RC != 0 ; then  if test $RC != 0 ; then

Removed from v.1.2  
changed lines
  Added in v.1.3


______________
© Copyright 1998-2020, OpenLDAP Foundation, info@OpenLDAP.org