From 74948b9b041c66ea81e3ac5a7a0b0a76e4efd74f Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Fri, 16 Dec 2005 12:19:53 +0000 Subject: [PATCH] save output across searches --- tests/scripts/test033-glue-syncrepl | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/tests/scripts/test033-glue-syncrepl b/tests/scripts/test033-glue-syncrepl index 31f5fc669d..36e9ab6542 100755 --- a/tests/scripts/test033-glue-syncrepl +++ b/tests/scripts/test033-glue-syncrepl @@ -82,10 +82,13 @@ SLEEP=15 echo "Waiting $SLEEP seconds for shadow subtrees to sync..." sleep $SLEEP +echo "Filtering original ldif used to create database..." +. $LDIFFILTER < $GLUESYNCOUT > $LDIFFLT + for P in $PORT1 $PORT2 ; do echo "Using ldapsearch to read all the entries from port $P..." $LDAPSEARCH -b "$BASEDN" -h $LOCALHOST -p $P \ - -S "" '(objectclass=*)' > $SEARCHOUT 2>&1 + -S "" '(objectclass=*)' > "${SEARCHOUT}.${P}" 2>&1 RC=$? if test $RC != 0 ; then @@ -95,9 +98,7 @@ for P in $PORT1 $PORT2 ; do fi echo "Filtering ldapsearch results..." - . $LDIFFILTER < $SEARCHOUT > $SEARCHFLT - echo "Filtering original ldif used to create database..." - . $LDIFFILTER < $GLUESYNCOUT > $LDIFFLT + . $LDIFFILTER < "${SEARCHOUT}.${P}" > $SEARCHFLT echo "Comparing filter output..." $CMP $SEARCHFLT $LDIFFLT > $CMPOUT -- 2.39.5