]> 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 19:24:09 +0000 (11:24 -0800)
bin/tests/system/checkconf/tests.sh
bin/tests/system/dnssec/tests.sh
bin/tests/system/keepalive/tests.sh
bin/tests/system/names/tests.sh
bin/tests/system/pipelined/tests.sh

index 96f2e9b8b2a18a943361a5ce1efd456bd00a7579..b7bb3a6ded4f6de86f2bbf746e368a2c5d4d9e10 100644 (file)
@@ -341,7 +341,7 @@ ret=0
 $CHECKCONF -l good.conf |
 grep -v "is not implemented" |
 grep -v "is obsolete" > checkconf.out$n || ret=1
-diff good.zonelist checkconf.out$n  > diff.out$n || ret=1
+$DIFF good.zonelist checkconf.out$n  > diff.out$n || ret=1
 if [ $ret != 0 ]; then echo_i "failed"; ret=1; fi
 status=`expr $status + $ret`
 
index 7878a6c350e9412a28a7922b73b23244fdb30316..882c7e6ba087f10dbaaf815686b3e88c18f689bc 100644 (file)
@@ -2651,7 +2651,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 7983aa1a94d272de75e3c41823b128fc5e7df956..7ff95a889ec736d634f1057f28f9db1b3413b6b9 100644 (file)
@@ -70,7 +70,7 @@ echo_i "checking re-configured value ($n)"
 ret=0
 n=`expr $n + 1`
 $RNDCCMD tcp-timeouts 300 300 300 200 > output
-diff -b output expected || ret=1
+$DIFF -b output expected || ret=1
 $DIG $DIGOPTS +vc +keepalive foo.example @10.53.0.2 > dig.out.test$n
 grep "; TCP KEEPALIVE: 20.0 secs" dig.out.test$n > /dev/null || ret=1
 if [ $ret != 0 ]; then echo_i "failed"; fi
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 1755c02647be071cbbdf7c589a7ce2c791a1c6a5..47e529a76442f40c1cba5b3a00bf8b262d5f410c 100644 (file)
@@ -22,8 +22,8 @@ ret=0
 $PIPEQUERIES -r $RANDFILE -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 -r $RANDFILE -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`