Diff for /tests/scripts/test008-concurrency between versions 1.6 and 1.7

version 1.6, 1999/04/10 02:42:34 version 1.7, 1999/04/21 03:59:02
Line 1 Line 1
 #!/bin/sh  #! /bin/sh
   
 if [ $# -eq 0 ]; then  if test $# -eq 0 ; then
         SRCDIR="."          SRCDIR="."
 else  else
         SRCDIR=$1; shift          SRCDIR=$1; shift
 fi  fi
 if [ $# -eq 1 ]; then  if test $# -eq 1 ; then
         BACKEND=$1; shift          BACKEND=$1; shift
 fi  fi
   
Line 17  echo "Datadir is $DATADIR" Line 17  echo "Datadir is $DATADIR"
   
 echo "Cleaning up in $DBDIR..."  echo "Cleaning up in $DBDIR..."
   
 rm -f $DBDIR/[!C]*  rm -f $DBDIR/[!C*
   
 echo "Running ldif2ldbm to build slapd database..."  echo "Running ldif2ldbm to build slapd database..."
 $LDIF2LDBM -f $CONF -i $LDIF -e ../servers/slapd/tools  $LDIF2LDBM -f $CONF -i $LDIF -e ../servers/slapd/tools
 RC=$?  RC=$?
 if [ $RC != 0 ]; then  if test $RC != 0 ; then
         echo "ldif2ldbm failed!"          echo "ldif2ldbm failed!"
         exit $RC          exit $RC
 fi  fi
Line 41  echo "Using tester for concurrent server Line 41  echo "Using tester for concurrent server
 $SLAPDTESTER -b "$BASEDN" -P "$PROGDIR" -d "$DATADIR" -h localhost -p $PORT -D "$MANAGERDN" -w $PASSWD -l 50  $SLAPDTESTER -b "$BASEDN" -P "$PROGDIR" -d "$DATADIR" -h localhost -p $PORT -D "$MANAGERDN" -w $PASSWD -l 50
 RC=$?  RC=$?
   
 if [ $RC != 0 ]; then  if test $RC != 0 ; then
         echo "slapd-tester failed!"          echo "slapd-tester failed!"
         exit $RC          exit $RC
 fi   fi 
Line 53  RC=$? Line 53  RC=$?
   
 kill -HUP $PID  kill -HUP $PID
   
 if [ $RC != 0 ]; then  if test $RC != 0 ; then
         echo "ldapsearch failed!"          echo "ldapsearch failed!"
         exit $RC          exit $RC
 fi  fi
   
 echo "Comparing retrieved entries to LDIF file used to create database"  echo "Comparing retrieved entries to LDIF file used to create database"
 cmp $SEARCHOUT $LDIF  cmp $SEARCHOUT $LDIF
 if [ $? != 0 ]; then  if test $? != 0 ; then
         echo "comparison failed - database was not created correctly"          echo "comparison failed - database was not created correctly"
         exit 1          exit 1
 fi  fi

Removed from v.1.6  
changed lines
  Added in v.1.7


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