From: Evan Hunt Date: Wed, 23 Jan 2019 00:29:34 +0000 (-0800) Subject: use $DIFF instead of diff X-Git-Tag: v9.11.6rc1~41^2~17 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=e947cdfd273592ff7787764ab5075361ce70c794;p=thirdparty%2Fbind9.git use $DIFF instead of diff --- diff --git a/bin/tests/system/dnssec/tests.sh b/bin/tests/system/dnssec/tests.sh index ae245f1c875..a39a0f2d458 100644 --- a/bin/tests/system/dnssec/tests.sh +++ b/bin/tests/system/dnssec/tests.sh @@ -2664,7 +2664,7 @@ awk '{ for (i=7;i<=NF;i++) printf("%s", $i); printf("\n"); }' < ns1/dsset-algroll$TP > canonical2.$n || ret=1 -diff -b canonical1.$n canonical2.$n > /dev/null 2>&1 || ret=1 +$DIFF -b canonical1.$n canonical2.$n > /dev/null 2>&1 || ret=1 n=`expr $n + 1` if [ $ret != 0 ]; then echo_i "failed"; fi status=`expr $status + $ret` diff --git a/bin/tests/system/names/tests.sh b/bin/tests/system/names/tests.sh index 23202268ccd..8b88ed82430 100644 --- a/bin/tests/system/names/tests.sh +++ b/bin/tests/system/names/tests.sh @@ -29,7 +29,7 @@ cat dig.compdis.test |grep -v ';;' |sort > dig.compdis.sorted.test # the compression disabled message should be at least twice as large as with # compression disabled, but the content should be the same echo_i "Checking if responses are identical other than in message size" -diff dig.compdis.sorted.test dig.compen.sorted.test >/dev/null +$DIFF dig.compdis.sorted.test dig.compen.sorted.test >/dev/null ret=$? if [ $ret != 0 ]; then echo_i "failed"; fi status=`expr $status + $ret` diff --git a/bin/tests/system/pipelined/tests.sh b/bin/tests/system/pipelined/tests.sh index a6720ce6564..61f1ff70cd2 100644 --- a/bin/tests/system/pipelined/tests.sh +++ b/bin/tests/system/pipelined/tests.sh @@ -22,8 +22,8 @@ ret=0 $PIPEQUERIES -p ${PORT} < input > raw || ret=1 awk '{ print $1 " " $5 }' < raw > output sort < output > output-sorted -diff ref output-sorted || { ret=1 ; echo_i "diff sorted failed"; } -diff ref output > /dev/null && { ret=1 ; echo_i "diff out of order failed"; } +$DIFF ref output-sorted || { ret=1 ; echo_i "diff sorted failed"; } +$DIFF ref output > /dev/null && { ret=1 ; echo_i "diff out of order failed"; } if [ $ret != 0 ]; then echo_i "failed"; fi status=`expr $status + $ret` @@ -36,8 +36,8 @@ ret=0 $MDIG $MDIGOPTS +noall +answer +vc -f input -b 10.53.0.4 @10.53.0.4 > raw.mdig awk '{ print $1 " " $5 }' < raw.mdig > output.mdig sort < output.mdig > output-sorted.mdig -diff ref output-sorted.mdig || { ret=1 ; echo_i "diff sorted failed"; } -diff ref output.mdig > /dev/null && { ret=1 ; echo_i "diff out of order failed"; } +$DIFF ref output-sorted.mdig || { ret=1 ; echo_i "diff sorted failed"; } +$DIFF ref output.mdig > /dev/null && { ret=1 ; echo_i "diff out of order failed"; } if [ $ret != 0 ]; then echo_i "failed"; fi status=`expr $status + $ret` @@ -45,7 +45,7 @@ echo_i "check keep-response-order" ret=0 $PIPEQUERIES -p ${PORT} ++ < inputb > rawb || ret=1 awk '{ print $1 " " $5 }' < rawb > outputb -diff refb outputb || ret=1 +$DIFF refb outputb || ret=1 if [ $ret != 0 ]; then echo_i "failed"; fi status=`expr $status + $ret` @@ -53,7 +53,7 @@ echo_i "check keep-response-order using mdig" ret=0 $MDIG $MDIGOPTS +noall +answer +vc -f inputb -b 10.53.0.7 @10.53.0.4 > rawb.mdig awk '{ print $1 " " $5 }' < rawb.mdig > outputb.mdig -diff refb outputb.mdig || ret=1 +$DIFF refb outputb.mdig || ret=1 if [ $ret != 0 ]; then echo_i "failed"; fi status=`expr $status + $ret` diff --git a/bin/tests/system/statschannel/tests.sh b/bin/tests/system/statschannel/tests.sh index 780f8573272..a16a25b46e1 100644 --- a/bin/tests/system/statschannel/tests.sh +++ b/bin/tests/system/statschannel/tests.sh @@ -188,7 +188,7 @@ $CURL -D regular.headers $URL 2>/dev/null | \ sed -e "s#.*##g" > regular.out $CURL -D compressed.headers --compressed $URL 2>/dev/null | \ sed -e "s#.*##g" > compressed.out -diff regular.out compressed.out >/dev/null || ret=1 +$DIFF regular.out compressed.out >/dev/null || ret=1 if [ $ret != 0 ]; then echo_i "failed"; fi status=`expr $status + $ret` n=`expr $n + 1`