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

version 1.1, 2005/04/20 16:57:37 version 1.2, 2005/04/21 01:24:15
Line 1 Line 1
 #! /bin/sh  #! /bin/sh
 # $OpenLDAP: pkg/ldap/tests/scripts/test035-meta,v 1.1 2005/04/16 00:27:28 ando Exp $  # $OpenLDAP: pkg/ldap/tests/scripts/test036-meta-concurrency,v 1.1 2005/04/20 16:57:37 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 18  echo "running defines.sh" Line 18  echo "running defines.sh"
   
 echo ""  echo ""
   
 echo "### this test is currently disabled; enable at own risk ###"  
 exit 0  
   
 if test $BACKMETA = metano ; then   if test $BACKMETA = metano ; then 
         echo "meta backend not available, test skipped"          echo "meta backend not available, test skipped"
         exit 0          exit 0
 fi  fi
   
   if test "x$TEST_META" != "xyes" ; then
           echo "### this test is currently disabled;"
           echo "### set \"TEST_META=yes\" to enable (at own risk)."
           exit 0
   else
           echo "### this test is __very__ experimental; enable at own risk"
   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
           echo "==> using DB_CONFIG $DB_CONFIG"
           cp $DB_CONFIG $DBDIR1
           cp $DB_CONFIG $DBDIR2
   else
           echo "==> set \"DB_CONFIG\" to the location of the DB_CONFIG file"
           echo "==> you want to use for the test."
   fi
   
 echo "Starting slapd on TCP/IP port $PORT1..."  echo "Starting slapd on TCP/IP port $PORT1..."
 . $CONFFILTER $BACKEND $MONITORDB < $CONF > $CONF1  . $CONFFILTER $BACKEND $MONITORDB < $CONF > $CONF1
 $SLAPD -f $CONF1 -h $URI1 -d $LVL $TIMING > $LOG1 2>&1 &  $SLAPD -f $CONF1 -h $URI1 -d $LVL $TIMING > $LOG1 2>&1 &
Line 112  for f in $DATADIR/do_* ; do Line 126  for f in $DATADIR/do_* ; do
         sed -e "s;$BASEDN;$METABASEDN;" $f > $TESTDIR/$f          sed -e "s;$BASEDN;$METABASEDN;" $f > $TESTDIR/$f
 done  done
   
   for f in $TESTDIR/$DATADIR/do_read.* ; do
           echo "ou=Meta,$METABASEDN" >> $f
   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 50 -r 20  $SLAPDTESTER -P "$PROGDIR" -d "$TESTDIR/$DATADIR" -h $LOCALHOST -p $PORT2 -D "cn=Manager,$METABASEDN" -w $PASSWD -l 100 -r 20
 RC=$?  RC=$?
   
 if test $RC != 0 ; then  if test $RC != 0 ; then

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


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