Diff for /tests/scripts/test008-concurrency between versions 1.10.2.5 and 1.11

version 1.10.2.5, 2000/07/29 01:53:18 version 1.11, 1999/07/30 21:00:04
Line 1 Line 1
 #! /bin/sh  #! /bin/sh
 # $OpenLDAP: pkg/ldap/tests/scripts/test008-concurrency,v 1.10.2.4 2000/07/04 20:14:09 kurt Exp $  
   
 if test $# -eq 0 ; then  if test $# -eq 0 ; then
         SRCDIR="."          SRCDIR="."
Line 20  echo "Cleaning up in $DBDIR..." Line 19  echo "Cleaning up in $DBDIR..."
   
 rm -f $DBDIR/[!C]*  rm -f $DBDIR/[!C]*
   
 echo "Running slapadd to build slapd database..."  echo "Running ldif2ldbm to build slapd database..."
 $SLAPADD -f $CONF -l $LDIF  $LDIF2LDBM -f $CONF -i $LDIF -e ../servers/slapd/tools
 RC=$?  RC=$?
 if test $RC != 0 ; then  if test $RC != 0 ; then
         echo "slapadd failed ($RC)!"          echo "ldif2ldbm failed!"
         exit $RC          exit $RC
 fi  fi
   
 echo "Waiting 5 seconds for slapadd to build slapd database..."  echo "Waiting 5 seconds for ldif2ldbm 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 -h $MASTERURI -d $LVL $TIMING > $MASTERLOG 2>&1 &  $SLAPD -f $CONF -p $PORT -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..."
Line 51  $SLAPDTESTER -b "$BASEDN" -P "$PROGDIR" Line 50  $SLAPDTESTER -b "$BASEDN" -P "$PROGDIR"
 RC=$?  RC=$?
   
 if test $RC != 0 ; then  if test $RC != 0 ; then
         echo "slapd-tester failed ($RC)!"          echo "slapd-tester failed!"
         exit $RC          exit $RC
 fi   fi 
   
Line 63  RC=$? Line 62  RC=$?
 kill -HUP $PID  kill -HUP $PID
   
 if test $RC != 0 ; then  if test $RC != 0 ; then
         echo "ldapsearch failed ($RC)!"          echo "ldapsearch failed!"
         exit $RC          exit $RC
 fi  fi
   
Line 72  echo "Filtering ldapsearch results..." Line 71  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 > $CMPOUT  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.2.5  
changed lines
  Added in v.1.11


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