From: Quanah Gibson-Mount Date: Thu, 2 Jul 2009 22:11:10 +0000 (+0000) Subject: Handle IPv6 localhost address X-Git-Tag: OPENLDAP_REL_ENG_2_4_17~13 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=6d1f2ef2ecfa2df6b1bdc2736e483335e890eb09;p=openldap Handle IPv6 localhost address --- diff --git a/tests/scripts/test056-monitor b/tests/scripts/test056-monitor index 2998c7c5ca..36b5cc54cb 100755 --- a/tests/scripts/test056-monitor +++ b/tests/scripts/test056-monitor @@ -61,11 +61,14 @@ if test $RC != 0 ; then exit $RC fi +# Compare results, ignoring possible difference of IPv4/IPv6 localhost address +localrewrite='s/=127\.0\.0\.1:/=LOCAL:/; s/=\[::1\]:/=LOCAL:/' echo "Filtering ldapsearch results..." -. $LDIFFILTER < $SEARCHOUT > $SEARCHFLT - +sed -e "$localrewrite" < $SEARCHOUT | . $LDIFFILTER > $SEARCHFLT +echo "Filtering expected data..." +sed -e "$localrewrite" < $MONITOROUT1 | . $LDIFFILTER > $LDIFFLT echo "Comparing filter output..." -$CMP $SEARCHFLT $MONITOROUT1 > $CMPOUT +$CMP $SEARCHFLT $LDIFFLT > $CMPOUT if test $? != 0 ; then echo "comparison failed - connection monitor output is not correct"