]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
check expected responses
authorMark Andrews <marka@isc.org>
Fri, 15 Nov 2013 02:22:48 +0000 (13:22 +1100)
committerMark Andrews <marka@isc.org>
Fri, 15 Nov 2013 02:22:48 +0000 (13:22 +1100)
bin/tests/system/views/tests.sh

index 30116bf14cea8aaf20a42abb650d60b860c96788..4b00f392cc322f14fdd25b12da3adb89b0cafee6 100644 (file)
@@ -106,6 +106,8 @@ one=`$DIG +tcp +short -p 5300 -b 10.53.0.2 @10.53.0.2 child.clone txt`
 two=`$DIG +tcp +short -p 5300 -b 10.53.0.4 @10.53.0.2 child.clone txt`
 three=`$DIG +tcp +short -p 5300 @10.53.0.3 child.clone txt`
 four=`$DIG +tcp +short -p 5300 @10.53.0.5 child.clone txt`
+echo "$three" | grep NS3 > /dev/null || { ret=1; echo "expected response from NS3 got '$three'"; }
+echo "$four" | grep NS5 > /dev/null || { ret=1; echo "expected response from NS5 got '$four'"; }
 if [ "$one" = "$two" ]; then
         echo "'$one' matches '$two'"
         ret=1