Diff for /tests/scripts/test008-concurrency between versions 1.10 and 1.10.2.3

version 1.10, 1999/07/16 00:45:53 version 1.10.2.3, 2000/06/13 17:57:44
Line 1 Line 1
 #! /bin/sh  #! /bin/sh
   # $OpenLDAP: pkg/ldap/tests/scripts/test008-concurrency,v 1.16 2000/05/27 15:16:10 kurt Exp $
   
 if test $# -eq 0 ; then  if test $# -eq 0 ; then
         SRCDIR="."          SRCDIR="."
Line 19  echo "Cleaning up in $DBDIR..." Line 20  echo "Cleaning up in $DBDIR..."
   
 rm -f $DBDIR/[!C]*  rm -f $DBDIR/[!C]*
   
 echo "Running ldif2ldbm to build slapd database..."  echo "Running slapadd to build slapd database..."
 $LDIF2LDBM -f $CONF -i $LDIF -e ../servers/slapd/tools  $LDIF2LDBM -f $CONF -l $LDIF
 RC=$?  RC=$?
 if test $RC != 0 ; then  if test $RC != 0 ; then
         echo "ldif2ldbm failed!"          echo "slapadd failed!"
         exit $RC          exit $RC
 fi  fi
   
 echo "Waiting 5 seconds for ldif2ldbm to build slapd database..."  echo "Waiting 5 seconds for slapadd to build slapd database..."
 sleep 5  sleep 5
   
 echo "Starting slapd on TCP/IP port $PORT..."  echo "Starting slapd on TCP/IP port $PORT..."
 $SLAPD -f $CONF -p $PORT -d $LVL $TIMING > $MASTERLOG 2>&1 &  $SLAPD -f $CONF -h $MASTERURI -d $LVL $TIMING > $MASTERLOG 2>&1 &
 PID=$!  PID=$!
   
 echo "Using ldapsearch to check that slapd is running..."  echo "Using ldapsearch to check that slapd is running..."
 for i in 0 1 2 3 4 5; do  for i in 0 1 2 3 4 5; do
         $LDAPSEARCH -L -s base -b "$MONITOR" -h localhost -p $PORT \          $LDAPSEARCH -s base -b "$MONITOR" -h localhost -p $PORT \
                 'objectclass=*' > /dev/null 2>&1                  'objectclass=*' > /dev/null 2>&1
         RC=$?          RC=$?
         if test $RC = 1 ; then          if test $RC = 1 ; then
Line 55  if test $RC != 0 ; then Line 56  if test $RC != 0 ; then
 fi   fi 
   
 echo "Using ldapsearch to retrieve all the entries..."  echo "Using ldapsearch to retrieve all the entries..."
 $LDAPSEARCH -L -S "" -b "$BASEDN" -h localhost -p $PORT \  $LDAPSEARCH -S "" -b "$BASEDN" -h localhost -p $PORT \
                         'objectClass=*' > $SEARCHOUT 2>&1                          'objectClass=*' > $SEARCHOUT 2>&1
 RC=$?  RC=$?
   
Line 71  echo "Filtering ldapsearch results..." Line 72  echo "Filtering ldapsearch results..."
 echo "Filtering original ldif used to create database..."  echo "Filtering original ldif used to create database..."
 . $SRCDIR/scripts/acfilter.sh < $LDIF > $LDIFFLT  . $SRCDIR/scripts/acfilter.sh < $LDIF > $LDIFFLT
 echo "Comparing filter output..."  echo "Comparing filter output..."
 cmp $SEARCHFLT $LDIFFLT  $CMP $SEARCHFLT $LDIFFLT
   
 if test $? != 0 ; then  if test $? != 0 ; then
         echo "comparison failed - database was not created correctly"          echo "comparison failed - database was not created correctly"

Removed from v.1.10  
changed lines
  Added in v.1.10.2.3


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