X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=tests%2Fscripts%2Ftest048-syncrepl-multiproxy;h=61422f54289b04f042328b2c555c97917d2389b6;hb=fc1396fa2e94ee2e752fd7c3ea5bb22f6592398a;hp=4d2b67501f1bf89442f327111a4c93503f142bb2;hpb=51c2ef23794027e77c5707a3a6862e568546dd9e;p=openldap diff --git a/tests/scripts/test048-syncrepl-multiproxy b/tests/scripts/test048-syncrepl-multiproxy index 4d2b67501f..61422f5428 100755 --- a/tests/scripts/test048-syncrepl-multiproxy +++ b/tests/scripts/test048-syncrepl-multiproxy @@ -2,7 +2,7 @@ # $OpenLDAP$ ## This work is part of OpenLDAP Software . ## -## Copyright 1998-2008 The OpenLDAP Foundation. +## Copyright 1998-2012 The OpenLDAP Foundation. ## All rights reserved. ## ## Redistribution and use in source and binary forms, with or without @@ -119,7 +119,7 @@ if test $RC != 0 ; then fi echo "Starting R1 slave slapd on TCP/IP port $PORT3..." -. $CONFFILTER $BACKEND $MONITORDB < $RSLAVECONF | sed -e 's;\.2\.;.3.;' > $CONF3 +. $CONFFILTER $BACKEND $MONITORDB < $RSLAVECONF | sed -e 's;\.2\.\([^/]*\)$;.3.\1;' > $CONF3 $SLAPD -f $CONF3 -h $URI3 -d $LVL $TIMING > $LOG3 2>&1 & R1SLAVEPID=$! if test $WAIT != 0 ; then @@ -159,9 +159,8 @@ if test $RC != 0 ; then exit $RC fi -SLEEP=15 -echo "Waiting $SLEEP seconds for syncrepl to receive changes..." -sleep $SLEEP +echo "Waiting $SLEEP1 seconds for syncrepl to receive changes..." +sleep $SLEEP1 #echo "Using ldapsearch to read all the entries from the master..." $LDAPSEARCH -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT1 \ @@ -186,9 +185,9 @@ if test $RC != 0 ; then fi #echo "Filtering master results..." -. $LDIFFILTER < "${MASTEROUT}.1" > $MASTERFLT +$LDIFFILTER < "${MASTEROUT}.1" > $MASTERFLT #echo "Filtering slave results..." -. $LDIFFILTER < "${SLAVEOUT}.1" > $SLAVEFLT +$LDIFFILTER < "${SLAVEOUT}.1" > $SLAVEFLT echo "$CHECK < Comparing retrieved entries from master and P1 slave..." $CMP $MASTERFLT $SLAVEFLT > $CMPOUT @@ -211,7 +210,7 @@ if test $RC != 0 ; then fi #echo "Filtering slave results..." -. $LDIFFILTER < "${SLAVEOUT}.1" > $SLAVEFLT +$LDIFFILTER < "${SLAVEOUT}.1" > $SLAVEFLT echo "$CHECK < Comparing retrieved entries from master and R1 slave..." $CMP $MASTERFLT $SLAVEFLT > $CMPOUT @@ -223,11 +222,10 @@ if test $? != 0 ; then fi CHECK=`expr $CHECK + 1` -SLEEP=10 -echo "$CHECK > Stopping the provider, sleeping $SLEEP seconds and restarting it..." +echo "$CHECK > Stopping the provider, sleeping $SLEEP2 seconds and restarting it..." kill -HUP "$MASTERPID" wait $MASTERPID -sleep $SLEEP +sleep $SLEEP2 echo "======================= RESTART =======================" >> $LOG1 $SLAPD -f $CONF1 -h $URI1 -d $LVL $TIMING >> $LOG1 2>&1 & @@ -345,9 +343,8 @@ if test $RC != 0 ; then exit $RC fi -SLEEP=15 -echo "Waiting $SLEEP seconds for syncrepl to receive changes..." -sleep $SLEEP +echo "Waiting $SLEEP1 seconds for syncrepl to receive changes..." +sleep $SLEEP1 #echo "Using ldapsearch to read all the entries from the master..." $LDAPSEARCH -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT1 \ @@ -372,9 +369,9 @@ if test $RC != 0 ; then fi #echo "Filtering master results..." -. $LDIFFILTER < "${MASTEROUT}.2" > $MASTERFLT +$LDIFFILTER < "${MASTEROUT}.2" > $MASTERFLT #echo "Filtering P1 slave results..." -. $LDIFFILTER < "${SLAVEOUT}.2" > $SLAVEFLT +$LDIFFILTER < "${SLAVEOUT}.2" > $SLAVEFLT echo "$CHECK < Comparing retrieved entries from master and P1 slave..." $CMP $MASTERFLT $SLAVEFLT > $CMPOUT @@ -397,7 +394,7 @@ if test $RC != 0 ; then fi #echo "Filtering slave results..." -. $LDIFFILTER < "${SLAVEOUT}.2" > $SLAVEFLT +$LDIFFILTER < "${SLAVEOUT}.2" > $SLAVEFLT echo "$CHECK < Comparing retrieved entries from master and R1 slave..." $CMP $MASTERFLT $SLAVEFLT > $CMPOUT @@ -457,9 +454,8 @@ if test $WAIT != 0 ; then fi KILLPIDS="$MASTERPID $P1SLAVEPID $R1SLAVEPID" -SLEEP=25 -echo "Waiting $SLEEP seconds for syncrepl to receive changes..." -sleep $SLEEP +echo "Waiting $SLEEP2 seconds for syncrepl to receive changes..." +sleep $SLEEP2 #echo "Using ldapsearch to read all the entries from the master..." $LDAPSEARCH -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT1 \ @@ -484,9 +480,9 @@ if test $RC != 0 ; then fi #echo "Filtering master results..." -. $LDIFFILTER < "${MASTEROUT}.3" > $MASTERFLT +$LDIFFILTER < "${MASTEROUT}.3" > $MASTERFLT #echo "Filtering slave results..." -. $LDIFFILTER < "${SLAVEOUT}.3" > $SLAVEFLT +$LDIFFILTER < "${SLAVEOUT}.3" > $SLAVEFLT echo "$CHECK < Comparing retrieved entries from master and P1 slave..." $CMP $MASTERFLT $SLAVEFLT > $CMPOUT @@ -509,7 +505,7 @@ if test $RC != 0 ; then fi #echo "Filtering slave results..." -. $LDIFFILTER < "${SLAVEOUT}.3" > $SLAVEFLT +$LDIFFILTER < "${SLAVEOUT}.3" > $SLAVEFLT echo "$CHECK < Comparing retrieved entries from master and R1 slave..." $CMP $MASTERFLT $SLAVEFLT > $CMPOUT @@ -539,9 +535,8 @@ if test $RC != 0 ; then exit $RC fi -SLEEP=15 -echo "Waiting $SLEEP seconds for syncrepl to receive changes..." -sleep $SLEEP +echo "Waiting $SLEEP1 seconds for syncrepl to receive changes..." +sleep $SLEEP1 #echo "Using ldapsearch to read all the entries from the master..." $LDAPSEARCH -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT1 \ @@ -566,9 +561,9 @@ if test $RC != 0 ; then fi #echo "Filtering master results..." -. $LDIFFILTER < "${MASTEROUT}.4" > $MASTERFLT +$LDIFFILTER < "${MASTEROUT}.4" > $MASTERFLT #echo "Filtering slave results..." -. $LDIFFILTER < "${SLAVEOUT}.4" > $SLAVEFLT +$LDIFFILTER < "${SLAVEOUT}.4" > $SLAVEFLT echo "$CHECK < Comparing retrieved entries from master and P1 slave..." $CMP $MASTERFLT $SLAVEFLT > $CMPOUT @@ -591,7 +586,7 @@ if test $RC != 0 ; then fi #echo "Filtering slave results..." -. $LDIFFILTER < "${SLAVEOUT}.4" > $SLAVEFLT +$LDIFFILTER < "${SLAVEOUT}.4" > $SLAVEFLT echo "$CHECK < Comparing retrieved entries from master and R1 slave..." $CMP $MASTERFLT $SLAVEFLT > $CMPOUT