Diff for /tests/scripts/test017-syncreplication-refresh between versions 1.4.2.2 and 1.7

version 1.4.2.2, 2003/10/06 14:57:32 version 1.7, 2003/06/26 05:18:50
Line 1 Line 1
 #! /bin/sh  #! /bin/sh
 # $OpenLDAP: pkg/ldap/tests/scripts/test017-syncreplication-refresh,v 1.4.2.1 2003/09/18 15:43:41 kurt Exp $  # $OpenLDAP: pkg/ldap/tests/scripts/test017-syncreplication-refresh,v 1.6 2003/06/26 04:12:55 jongchoi Exp $
   
 SRCDIR="."  SRCDIR="."
 if test $# -ge 1 ; then  if test $# -ge 1 ; then
Line 8  fi Line 8  fi
   
 . $SRCDIR/scripts/args.sh $*  . $SRCDIR/scripts/args.sh $*
   
   if test "$BACKEND" != "bdb" -a "$BACKEND" != "hdb"; then
           echo "Test only valid for back-bdb"
           exit 0
   fi
   
 echo "running defines.sh"  echo "running defines.sh"
 . $SRCDIR/scripts/defines.sh  . $SRCDIR/scripts/defines.sh
   
Line 26  echo "Resetting $R1REPLDIR..." Line 31  echo "Resetting $R1REPLDIR..."
 rm -rf $R1REPLDIR  rm -rf $R1REPLDIR
 mkdir $R1REPLDIR  mkdir $R1REPLDIR
   
 SAVE=$BACKEND  
 if test $BACKEND = ldbm; then  
         if test $SYNCREPL = no; then  
                 echo "Sync replication requires back-bdb or back-hdb"  
                 exit 0  
         fi  
         BACKEND=$SYNCREPL  
 fi  
 echo "Starting master slapd on TCP/IP port $PORT..."  echo "Starting master slapd on TCP/IP port $PORT..."
 . $CONFFILTER $BACKEND $MONITORDB < $SRMASTERCONF > $DBCONF  . $CONFFILTER $BACKEND $MONITORDB < $SRMASTERCONF > $DBCONF
 $SLAPD -f $DBCONF -h $MASTERURI -d $LVL $TIMING > $MASTERLOG 2>&1 &  $SLAPD -f $DBCONF -h $MASTERURI -d $LVL $TIMING > $MASTERLOG 2>&1 &
Line 42  if test $WAIT != 0 ; then Line 39  if test $WAIT != 0 ; then
     echo PID $PID      echo PID $PID
     read foo      read foo
 fi  fi
 BACKEND=$SAVE  
   
 echo "Waiting 5 seconds to wait for master to start..."  echo "Waiting 5 seconds to wait for master to start..."
 sleep 5  sleep 5
Line 100  if test $RC != 0 ; then Line 96  if test $RC != 0 ; then
         exit $RC          exit $RC
 fi  fi
   
 echo "Waiting 90 seconds for syncrepl to receive changes..."  echo "Waiting 30 seconds for syncrepl to receive changes..."
 sleep 90  sleep 30
   
 echo "Using ldapmodify to modify master directory..."  echo "Using ldapmodify to modify master directory..."
   
Line 182  changetype: delete Line 178  changetype: delete
   
 EOMODS  EOMODS
   
 echo "Waiting 90 seconds for syncrepl to receive changes..."  echo "Waiting 30 seconds for syncrepl to receive changes..."
 sleep 90  sleep 30
   
 echo "Using ldapsearch to read all the entries from the master..."  echo "Using ldapsearch to read all the entries from the master..."
 $LDAPSEARCH -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT \  $LDAPSEARCH -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT \

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


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