]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
use $DIFF instead of diff
authorEvan Hunt <each@isc.org>
Wed, 23 Jan 2019 00:29:34 +0000 (16:29 -0800)
committerEvan Hunt <each@isc.org>
Fri, 25 Jan 2019 23:38:48 +0000 (15:38 -0800)
bin/tests/system/dnssec/tests.sh
bin/tests/system/names/tests.sh
bin/tests/system/pipelined/tests.sh
bin/tests/system/statschannel/tests.sh

index ae245f1c875045cfff7de8a5b38e01c4b243a084..a39a0f2d458145f1e348c6c3acaf8251b61bd289 100644 (file)
@@ -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`
index 23202268ccdc1508e90c10cf6ead5fc341d6468f..8b88ed8243042580f66eae37213719fb4c513343 100644 (file)
@@ -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`
index a6720ce6564fa54d73b7a43bad8ff7ac054880f7..61f1ff70cd2507168235c7f2dd97e767364e0faf 100644 (file)
@@ -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`
 
index 780f85732720f379b532701d378f3b0a8324a2d9..a16a25b46e159708e80ce595cb82d0cde90dd7bd 100644 (file)
@@ -188,7 +188,7 @@ $CURL -D regular.headers $URL 2>/dev/null | \
        sed -e "s#<current-time>.*</current-time>##g" > regular.out
 $CURL -D compressed.headers --compressed $URL 2>/dev/null | \
        sed -e "s#<current-time>.*</current-time>##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`