Lines Matching refs:ans

52 ans=`$DIG $DIGOPTS_CD @10.53.0.4 hostile MX` || ret=1
53 test "$ans" = "$expect" || ret=1
54 test $ret = 0 || echo I:failed, got "'""$ans""'", expected "'""$expect""'"
60 ans=`$DIG $DIGOPTS_CD @10.53.0.4 mail.example A` || ret=1
61 test "$ans" = "$expect" || ret=1
62 test $ret = 0 || echo I:failed, got "'""$ans""'", expected "'""$expect""'"
72 ans=`$DIG $DIGOPTS @10.53.0.4 example.com MX` || ret=1
73 test "$ans" = "$expect" || ret=1
74 test $ret = 0 || echo I:failed, got "'""$ans""'", expected "'""$expect""'"
90 ans=`$DIG $DIGOPTS @10.53.0.4 mail.example.com A` || ret=1
91 test "$ans" = "$expect" || ret=1
92 test $ret = 0 || echo I:failed, got "'""$ans""'", expected "'""$expect""'"
98 ans=`$DIG $DIGOPTS_CD @10.53.0.4 mail.example.com AAAA` || ret=1
99 test "$ans" = "$expect" || ret=1
100 test $ret = 0 || echo I:failed, got "'""$ans""'", expected "'""$expect""'"
110 ans=`$DIG $DIGOPTS_CD @10.53.0.4 pending-ok.example.com A` || ret=1
111 test "$ans" = "$expect" || ret=1
112 test $ret = 0 || echo I:failed, got "'""$ans""'", expected "'""$expect""'"
123 ans=`$DIG $DIGOPTS_CD @10.53.0.4 pending-ok.example.com A` || ret=1
124 test "$ans" = "$expect" || ret=1
125 test $ret = 0 || echo I:failed, got "'""$ans""'", expected "'""$expect""'"
135 ans=`$DIG $DIGOPTS_CD @10.53.0.4 pending-ng.example.com A` || ret=1
136 test "$ans" = "$expect" || ret=1
137 test $ret = 0 || echo I:failed, got "'""$ans""'", expected "'""$expect""'"
148 ans=`$DIG $DIGOPTS @10.53.0.4 pending-ng.example.com A` || ret=1
149 test "$ans" = "$expect" || ret=1
150 test $ret = 0 || echo I:failed, got "'""$ans""'", expected "'""$expect""'"
159 ans=`$DIG $DIGOPTS_CD @10.53.0.4 bad.example. A` || ret=1
160 ans=`echo $ans | awk '{print $NF}'`
161 test "$ans" = "$expect" || ret=1
162 test $ret = 0 || echo I:failed, got "'""$ans""'", expected "'""$expect""'"
168 ans=`$DIG $DIGOPTS_CD @10.53.0.4 nice.good. A` || ret=1
169 ans=`echo $ans | awk '{print $NF}'`
170 test "$ans" = "$expect" || ret=1
171 test $ret = 0 || echo I:failed, got "'""$ans""'", expected "'""$expect""'"
180 ans=`$DIG +tcp -p 5300 @10.53.0.4 removed.example.com. A` || ret=1
181 ans=`echo $ans | sed 's/^.*status: \([A-Z][A-Z]*\).*$/\1/'`
182 test "$ans" = "$expect" || ret=1
183 test $ret = 0 || echo I:failed, got "'""$ans""'", expected "'""$expect""'"
189 ans=`$DIG +tcp -p 5300 @10.53.0.4 removed.example.com. A` || ret=1
190 ans=`echo $ans | sed 's/^.*status: \([A-Z][A-Z]*\).*$/\1/'`
191 test "$ans" = "$expect" || ret=1
192 test $ret = 0 || echo I:failed, got "'""$ans""'", expected "'""$expect""'"