X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=tests%2Fscripts%2Ftest020-proxycache;h=0fc9f8b719b8cdbabf5bedb2fbafe802b1853324;hb=0dfc478cdf55c5b77203997f69ff98a40cef715f;hp=797d828802a91fc494f33ed1a9be4063fa0af1b6;hpb=614fd279c72b75334be67244bae88a02236a230c;p=openldap diff --git a/tests/scripts/test020-proxycache b/tests/scripts/test020-proxycache index 797d828802..0fc9f8b719 100755 --- a/tests/scripts/test020-proxycache +++ b/tests/scripts/test020-proxycache @@ -54,6 +54,8 @@ if test $WAIT != 0 ; then fi KILLPIDS="$PID" +sleep 1 + echo "Using ldapsearch to check that master slapd is running..." for i in 0 1 2 3 4 5; do $LDAPSEARCH -s base -b "$MONITOR" -h $LOCALHOST -p $PORT1 \ @@ -92,6 +94,8 @@ if test $WAIT != 0 ; then fi KILLPIDS="$KILLPIDS $CACHEPID" +sleep 1 + echo "Using ldapsearch to check that proxy slapd is running..." for i in 0 1 2 3 4 5; do $LDAPSEARCH -s base -b "$MONITOR" -h $LOCALHOST -p $PORT2 \ @@ -273,8 +277,10 @@ else exit 1 fi -echo "Comparing cache output..." -$CMP $SLAVEOUT $PROXYCACHEOUT > $CMPOUT +echo "Filtering ldapsearch results..." +. $LDIFFILTER < $SLAVEOUT > $SEARCHFLT +echo "Comparing filter output..." +$CMP $SEARCHFLT $PROXYCACHEOUT > $CMPOUT if test $? != 0 ; then echo "Comparison failed"