Lines Matching refs:ret

21 	ret=0
22 $DIG +short $DIGOPTS @10.53.0.1 a$i.example a in > dig.out || ret=1
23 echo 10.0.0.1 | $DIFF - dig.out || ret=1
24 if [ $ret != 0 ]
28 status=`expr $status + $ret`
34 ret=0
35 $DIG +short $DIGOPTS @10.53.0.1 txt$i.example txt in > dig.out || ret=1
36 echo '"hello"' | $DIFF - dig.out || ret=1
37 if [ $ret != 0 ]
41 status=`expr $status + $ret`
47 ret=0
48 $DIG +short $DIGOPTS @10.53.0.1 unk$i.example type123 in > dig.out || ret=1
49 echo '\# 1 00' | $DIFF - dig.out || ret=1
50 if [ $ret != 0 ]
54 status=`expr $status + $ret`
58 ret=0
59 $DIG +short $DIGOPTS @10.53.0.1 null.example null in > dig.out || ret=1
60 echo '\# 1 00' | $DIFF - dig.out || ret=1
61 [ $ret = 0 ] || echo "I: failed"
62 status=`expr $status + $ret`
65 ret=0
66 $DIG +short $DIGOPTS @10.53.0.1 empty.example null in > dig.out || ret=1
67 echo '\# 0' | $DIFF - dig.out || ret=1
68 [ $ret = 0 ] || echo "I: failed"
69 status=`expr $status + $ret`
74 ret=0
75 $DIG +short $DIGOPTS @10.53.0.1 a$i.example a class10 > dig.out || ret=1
76 echo '\# 4 0A000001' | $DIFF - dig.out || ret=1
77 if [ $ret != 0 ]
81 status=`expr $status + $ret`
87 ret=0
88 $DIG +short $DIGOPTS @10.53.0.1 txt$i.example txt class10 > dig.out || ret=1
89 echo '"hello"' | $DIFF - dig.out || ret=1
90 if [ $ret != 0 ]
94 status=`expr $status + $ret`
100 ret=0
101 $DIG +short $DIGOPTS @10.53.0.1 unk$i.example type123 class10 > dig.out || ret=1
102 echo '\# 1 00' | $DIFF - dig.out || ret=1
103 if [ $ret != 0 ]
107 status=`expr $status + $ret`
113 ret=0
114 $DIG $DIGOPTS @10.53.0.1 broken$i. soa in > dig.out || ret=1
115 grep "SERVFAIL" dig.out > /dev/null || ret=1
116 if [ $ret != 0 ]
120 status=`expr $status + $ret`
124 ret=0
125 $DIG $DIGOPTS @10.53.0.1 +tcp +short large.example TYPE45234 > dig.out || { ret=1 ; echo I: dig failed ; }
126 $DIFF -s large.out dig.out > /dev/null || { ret=1 ; echo "I: $DIFF failed"; }
127 [ $ret = 0 ] || echo "I: failed"
128 status=`expr $status + $ret`
131 ret=0
132 $DIG $DIGOPTS @10.53.0.2 +tcp +short large.example TYPE45234 > dig.out || { ret=1 ; echo I: dig failed ; }
133 $DIFF -s large.out dig.out > /dev/null || { ret=1 ; echo "I: $DIFF failed"; }
134 [ $ret = 0 ] || echo "I: failed"
135 status=`expr $status + $ret`
142 ret=0
143 $DIG $DIGOPTS @10.53.0.2 +tcp +short large.example TYPE45234 > dig.out || { ret=1 ; echo I: dig failed ; }
144 $DIFF -s large.out dig.out > /dev/null || { ret=1 ; echo "I: $DIFF failed"; }
145 [ $ret = 0 ] || echo "I: failed"
146 status=`expr $status + $ret`
149 ret=0
150 $DIG $DIGOPTS @10.53.0.3 +tcp +short large.example TYPE45234 > dig.out || { ret=1 ; echo I: dig failed ; }
151 $DIFF large.out dig.out > /dev/null || { ret=1 ; echo "I: $DIFF failed"; }
152 [ $ret = 0 ] || echo "I: failed"
153 status=`expr $status + $ret`
160 ret=0
161 $DIG $DIGOPTS @10.53.0.3 +tcp +short large.example TYPE45234 > dig.out || { ret=1 ; echo I: dig failed ; }
162 $DIFF large.out dig.out > /dev/null || { ret=1 ; echo "I: $DIFF failed"; }
163 [ $ret = 0 ] || echo "I: failed"
164 status=`expr $status + $ret`
167 ret=0
169 echo '"#" "2" "0145"' | $DIFF - dig.out || ret=1
170 [ $ret = 0 ] || echo "I: failed"
171 status=`expr $status + $ret`
174 ret=0
176 echo '"#" "text"' | $DIFF - dig.out || ret=1
177 [ $ret = 0 ] || echo "I: failed"
178 status=`expr $status + $ret`
181 ret=0
183 grep "not a valid number" check.out > /dev/null || ret=1
184 [ $ret = 0 ] || echo "I: failed"
185 status=`expr $status + $ret`