From ced4f794cf7149e2af628e872f3608d5f9b5fbc7 Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Fri, 15 Nov 2013 13:22:48 +1100 Subject: [PATCH] check expected responses --- bin/tests/system/views/tests.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bin/tests/system/views/tests.sh b/bin/tests/system/views/tests.sh index 30116bf14c..4b00f392cc 100644 --- a/bin/tests/system/views/tests.sh +++ b/bin/tests/system/views/tests.sh @@ -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