Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
ISC Open Source Projects
BIND
Commits
3635d8f9
Commit
3635d8f9
authored
Jun 14, 2016
by
Mark Andrews
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
do not overflow exit status. [RT #42643]
parent
ecff557e
Changes
93
Hide whitespace changes
Inline
Side-by-side
Showing
75 changed files
with
96 additions
and
82 deletions
+96
-82
bin/tests/system/acl/tests.sh
bin/tests/system/acl/tests.sh
+1
-1
bin/tests/system/additional/tests.sh
bin/tests/system/additional/tests.sh
+2
-1
bin/tests/system/addzone/tests.sh
bin/tests/system/addzone/tests.sh
+1
-1
bin/tests/system/allow_query/tests.sh
bin/tests/system/allow_query/tests.sh
+1
-2
bin/tests/system/autosign/tests.sh
bin/tests/system/autosign/tests.sh
+1
-1
bin/tests/system/builtin/tests.sh
bin/tests/system/builtin/tests.sh
+2
-1
bin/tests/system/cacheclean/tests.sh
bin/tests/system/cacheclean/tests.sh
+1
-1
bin/tests/system/case/tests.sh
bin/tests/system/case/tests.sh
+3
-1
bin/tests/system/catz/tests.sh
bin/tests/system/catz/tests.sh
+1
-1
bin/tests/system/checkconf/tests.sh
bin/tests/system/checkconf/tests.sh
+1
-1
bin/tests/system/checkds/tests.sh
bin/tests/system/checkds/tests.sh
+1
-1
bin/tests/system/checknames/tests.sh
bin/tests/system/checknames/tests.sh
+2
-1
bin/tests/system/checkzone/tests.sh
bin/tests/system/checkzone/tests.sh
+1
-1
bin/tests/system/cookie/tests.sh
bin/tests/system/cookie/tests.sh
+1
-1
bin/tests/system/coverage/tests.sh
bin/tests/system/coverage/tests.sh
+1
-1
bin/tests/system/database/tests.sh
bin/tests/system/database/tests.sh
+1
-1
bin/tests/system/dialup/tests.sh
bin/tests/system/dialup/tests.sh
+1
-1
bin/tests/system/digdelv/clean.sh
bin/tests/system/digdelv/clean.sh
+1
-1
bin/tests/system/digdelv/tests.sh
bin/tests/system/digdelv/tests.sh
+5
-4
bin/tests/system/dlv/tests.sh
bin/tests/system/dlv/tests.sh
+1
-1
bin/tests/system/dlvauto/tests.sh
bin/tests/system/dlvauto/tests.sh
+2
-1
bin/tests/system/dlz/tests.sh
bin/tests/system/dlz/tests.sh
+1
-1
bin/tests/system/dlzexternal/tests.sh
bin/tests/system/dlzexternal/tests.sh
+2
-1
bin/tests/system/dname/tests.sh
bin/tests/system/dname/tests.sh
+1
-1
bin/tests/system/dns64/tests.sh
bin/tests/system/dns64/tests.sh
+1
-1
bin/tests/system/dnssec/tests.sh
bin/tests/system/dnssec/tests.sh
+1
-1
bin/tests/system/dnstap/tests.sh
bin/tests/system/dnstap/tests.sh
+1
-1
bin/tests/system/dscp/tests.sh
bin/tests/system/dscp/tests.sh
+3
-1
bin/tests/system/dsdigest/tests.sh
bin/tests/system/dsdigest/tests.sh
+1
-1
bin/tests/system/dyndb/tests.sh
bin/tests/system/dyndb/tests.sh
+2
-1
bin/tests/system/ecdsa/tests.sh
bin/tests/system/ecdsa/tests.sh
+1
-1
bin/tests/system/ednscompliance/tests.sh
bin/tests/system/ednscompliance/tests.sh
+1
-1
bin/tests/system/emptyzones/tests.sh
bin/tests/system/emptyzones/tests.sh
+2
-1
bin/tests/system/fetchlimit/tests.sh
bin/tests/system/fetchlimit/tests.sh
+1
-1
bin/tests/system/filter-aaaa/tests.sh
bin/tests/system/filter-aaaa/tests.sh
+1
-1
bin/tests/system/formerr/tests.sh
bin/tests/system/formerr/tests.sh
+1
-1
bin/tests/system/forward/tests.sh
bin/tests/system/forward/tests.sh
+1
-1
bin/tests/system/geoip/tests.sh
bin/tests/system/geoip/tests.sh
+1
-1
bin/tests/system/glue/tests.sh
bin/tests/system/glue/tests.sh
+1
-1
bin/tests/system/gost/tests.sh
bin/tests/system/gost/tests.sh
+1
-1
bin/tests/system/inline/tests.sh
bin/tests/system/inline/tests.sh
+2
-1
bin/tests/system/ixfr/tests.sh
bin/tests/system/ixfr/tests.sh
+1
-1
bin/tests/system/keymgr/tests.sh
bin/tests/system/keymgr/tests.sh
+1
-1
bin/tests/system/legacy/tests.sh
bin/tests/system/legacy/tests.sh
+1
-1
bin/tests/system/limits/tests.sh
bin/tests/system/limits/tests.sh
+1
-1
bin/tests/system/logfileconfig/tests.sh
bin/tests/system/logfileconfig/tests.sh
+1
-1
bin/tests/system/lwresd/tests.sh
bin/tests/system/lwresd/tests.sh
+1
-1
bin/tests/system/masterfile/tests.sh
bin/tests/system/masterfile/tests.sh
+1
-1
bin/tests/system/masterformat/tests.sh
bin/tests/system/masterformat/tests.sh
+1
-1
bin/tests/system/metadata/tests.sh
bin/tests/system/metadata/tests.sh
+1
-1
bin/tests/system/mkeys/tests.sh
bin/tests/system/mkeys/tests.sh
+1
-1
bin/tests/system/names/tests.sh
bin/tests/system/names/tests.sh
+1
-1
bin/tests/system/notify/tests.sh
bin/tests/system/notify/tests.sh
+1
-1
bin/tests/system/nslookup/tests.sh
bin/tests/system/nslookup/tests.sh
+1
-2
bin/tests/system/nsupdate/tests.sh
bin/tests/system/nsupdate/tests.sh
+1
-1
bin/tests/system/pending/tests.sh
bin/tests/system/pending/tests.sh
+1
-1
bin/tests/system/pipelined/tests.sh
bin/tests/system/pipelined/tests.sh
+1
-1
bin/tests/system/pkcs11/tests.sh
bin/tests/system/pkcs11/tests.sh
+1
-1
bin/tests/system/pkcs11ssl/tests.sh
bin/tests/system/pkcs11ssl/tests.sh
+1
-1
bin/tests/system/reclimit/tests.sh
bin/tests/system/reclimit/tests.sh
+1
-1
bin/tests/system/redirect/tests.sh
bin/tests/system/redirect/tests.sh
+1
-1
bin/tests/system/resolver/tests.sh
bin/tests/system/resolver/tests.sh
+2
-1
bin/tests/system/rndc/tests.sh
bin/tests/system/rndc/tests.sh
+2
-1
bin/tests/system/rpz/tests.sh
bin/tests/system/rpz/tests.sh
+1
-1
bin/tests/system/rpzrecurse/tests.sh
bin/tests/system/rpzrecurse/tests.sh
+2
-2
bin/tests/system/rrchecker/tests.sh
bin/tests/system/rrchecker/tests.sh
+1
-1
bin/tests/system/rrl/tests.sh
bin/tests/system/rrl/tests.sh
+2
-2
bin/tests/system/rrsetorder/tests.sh
bin/tests/system/rrsetorder/tests.sh
+1
-1
bin/tests/system/rsabigexponent/tests.sh
bin/tests/system/rsabigexponent/tests.sh
+1
-1
bin/tests/system/runtime/tests.sh
bin/tests/system/runtime/tests.sh
+2
-1
bin/tests/system/sfcache/tests.sh
bin/tests/system/sfcache/tests.sh
+1
-1
bin/tests/system/smartsign/tests.sh
bin/tests/system/smartsign/tests.sh
+1
-1
bin/tests/system/sortlist/tests.sh
bin/tests/system/sortlist/tests.sh
+1
-1
bin/tests/system/spf/tests.sh
bin/tests/system/spf/tests.sh
+1
-1
bin/tests/system/staticstub/tests.sh
bin/tests/system/staticstub/tests.sh
+1
-1
No files found.
bin/tests/system/acl/tests.sh
View file @
3635d8f9
...
...
@@ -181,4 +181,4 @@ $DIG example. soa @10.53.0.2 +subnet="192.0.2.128/32" -p 5300 > dig.out.${t}
grep
"CLIENT-SUBNET.*192.0.2.128/32/24"
dig.out.
${
t
}
>
/dev/null
||
{
echo
"I:test
$t
failed"
;
status
=
1
;
}
echo
"I:exit status:
$status
"
exit
$status
[
$status
-eq
0
]
||
exit
1
bin/tests/system/additional/tests.sh
View file @
3635d8f9
...
...
@@ -139,4 +139,5 @@ if [ $ret -eq 1 ] ; then
echo
"I: failed"
;
status
=
1
fi
exit
$status
echo
"I:exit status:
$status
"
[
$status
-eq
0
]
||
exit
1
bin/tests/system/addzone/tests.sh
View file @
3635d8f9
...
...
@@ -381,4 +381,4 @@ if [ $ret != 0 ]; then echo "I:failed"; fi
status
=
`
expr
$status
+
$ret
`
echo
"I:exit status:
$status
"
exit
$status
[
$status
-eq
0
]
||
exit
1
bin/tests/system/allow_query/tests.sh
View file @
3635d8f9
...
...
@@ -630,5 +630,4 @@ if [ $ret != 0 ]; then echo "I:failed"; fi
status
=
`
expr
$status
+
$ret
`
echo
"I:exit status:
$status
"
exit
$status
[
$status
-eq
0
]
||
exit
1
bin/tests/system/autosign/tests.sh
View file @
3635d8f9
...
...
@@ -1217,4 +1217,4 @@ if [ $ret != 0 ]; then echo "I:failed"; fi
status
=
`
expr
$status
+
$ret
`
echo
"I:exit status:
$status
"
exit
$status
[
$status
-eq
0
]
||
exit
1
bin/tests/system/builtin/tests.sh
View file @
3635d8f9
...
...
@@ -123,4 +123,5 @@ $DIG +norec +nsid foo @10.53.0.3 -p 5300 > dig.out.ns3.$n
grep
"^; NSID: .* (
\"
this.is.a.test.of.server-id
\"
)$"
dig.out.ns3.
$n
>
/dev/null
||
ret
=
1
if
[
$ret
!=
0
]
;
then
echo
I:failed
;
status
=
`
expr
$status
+
$ret
`
;
fi
exit
$status
echo
"I:exit status:
$status
"
[
$status
-eq
0
]
||
exit
1
bin/tests/system/cacheclean/tests.sh
View file @
3635d8f9
...
...
@@ -225,4 +225,4 @@ if [ $ret != 0 ]; then echo "I:failed"; fi
status
=
`
expr
$status
+
$ret
`
echo
"I:exit status:
$status
"
exit
$status
[
$status
-eq
0
]
||
exit
1
bin/tests/system/case/tests.sh
View file @
3635d8f9
...
...
@@ -137,5 +137,7 @@ echo "I:check A owner case is transfered to slave ($n)"
ret
=
0
$DIG
axfr dynamic @10.53.0.2
-p
5300
>
dig.ns2.test
$n
$PERL
../digcomp.pl dig.ns2.test
$n
postns1.good
||
ret
=
1
status
=
`
expr
$status
+
$ret
`
echo
"I:exit status:
$status
"
exit
$status
[
$status
-eq
0
]
||
exit
1
bin/tests/system/catz/tests.sh
View file @
3635d8f9
...
...
@@ -373,4 +373,4 @@ if [ $ret != 0 ]; then echo "I:failed"; fi
status
=
`
expr
$status
+
$ret
`
echo
"I:exit status:
$status
"
exit
$status
[
$status
-eq
0
]
||
exit
1
bin/tests/system/checkconf/tests.sh
View file @
3635d8f9
...
...
@@ -293,4 +293,4 @@ if [ $ret != 0 ]; then echo "I:failed"; ret=1; fi
status
=
`
expr
$status
+
$ret
`
echo
"I:exit status:
$status
"
exit
$status
[
$status
-eq
0
]
||
exit
1
bin/tests/system/checkds/tests.sh
View file @
3635d8f9
...
...
@@ -176,4 +176,4 @@ status=`expr $status + $ret`
if
[
$status
=
0
]
;
then
$SHELL
clean.sh
;
fi
echo
"I:exit status:
$status
"
exit
$status
[
$status
-eq
0
]
||
exit
1
bin/tests/system/checknames/tests.sh
View file @
3635d8f9
...
...
@@ -151,4 +151,5 @@ if [ $ret != 0 ]; then echo "I:failed"; fi
status
=
`
expr
$status
+
$ret
`
n
=
`
expr
$n
+ 1
`
exit
$status
echo
"I:exit status:
$status
"
[
$status
-eq
0
]
||
exit
1
bin/tests/system/checkzone/tests.sh
View file @
3635d8f9
...
...
@@ -171,4 +171,4 @@ if [ $ret != 0 ]; then echo "I:failed"; fi
status
=
`
expr
$status
+
$ret
`
echo
"I:exit status:
$status
"
exit
$status
[
$status
-eq
0
]
||
exit
1
bin/tests/system/cookie/tests.sh
View file @
3635d8f9
...
...
@@ -137,4 +137,4 @@ status=`expr $status + $ret`
echo
"I:exit status:
$status
"
exit
$status
[
$status
-eq
0
]
||
exit
1
bin/tests/system/coverage/tests.sh
View file @
3635d8f9
...
...
@@ -81,4 +81,4 @@ for dir in [0-9][0-9]-*; do
done
echo
"I:exit status:
$status
"
exit
$status
[
$status
-eq
0
]
||
exit
1
bin/tests/system/database/tests.sh
View file @
3635d8f9
...
...
@@ -57,4 +57,4 @@ if [ $ret != 0 ]; then echo "I:failed"; fi
status
=
`
expr
$status
+
$ret
`
echo
"I:exit status:
$status
"
exit
$status
[
$status
-eq
0
]
||
exit
1
bin/tests/system/dialup/tests.sh
View file @
3635d8f9
...
...
@@ -68,4 +68,4 @@ if [ $ret != 0 ]; then echo "I:failed"; fi
status
=
`
expr
$status
+
$ret
`
echo
"I:exit status:
$status
"
exit
$status
[
$status
-eq
0
]
||
exit
1
bin/tests/system/digdelv/clean.sh
View file @
3635d8f9
...
...
@@ -14,7 +14,7 @@
# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
# PERFORMANCE OF THIS SOFTWARE.
rm
-f
dig.out.test
*
rm
-f
dig.out.
*
test
*
rm
-f
delv.out.test
*
rm
-f
*
/named.memstats
rm
-f
*
/named.run
...
...
bin/tests/system/digdelv/tests.sh
View file @
3635d8f9
...
...
@@ -263,7 +263,7 @@ if [ -x ${DIG} ] ; then
echo
"I:checking dig +subnet with various prefix lengths (
$n
)"
ret
=
0
for
i
in
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
;
do
$DIG
$DIGOPTS
+tcp @10.53.0.2 +subnet
=
255.255.255.255/
$i
A a.example
>
dig.out.test
$n
2>&1
||
ret
=
1
$DIG
$DIGOPTS
+tcp @10.53.0.2 +subnet
=
255.255.255.255/
$i
A a.example
>
dig.out.
$i
.
test
$n
2>&1
||
ret
=
1
case
$i
in
1|9|17
)
octet
=
128
;;
2|10|18
)
octet
=
192
;;
...
...
@@ -279,8 +279,8 @@ if [ -x ${DIG} ] ; then
9|10|11|12|13|14|15|16
)
addr
=
"255.
${
octet
}
.0.0"
;;
17|18|19|20|21|22|23|24
)
addr
=
"255.255.
${
octet
}
.0"
;;
esac
grep
"FORMERR"
< dig.out.test
.
$p
.
$n
>
/dev/null
&&
ret
=
1
grep
"CLIENT-SUBNET:
$addr
/
$i
/0"
< dig.out.test
$n
>
/dev/null
||
ret
=
1
grep
"FORMERR"
< dig.out.
$i
.
test
$n
>
/dev/null
&&
ret
=
1
grep
"CLIENT-SUBNET:
$addr
/
$i
/0"
< dig.out.
$i
.
test
$n
>
/dev/null
||
ret
=
1
done
if
[
$ret
!=
0
]
;
then
echo
"I:failed"
;
fi
status
=
`
expr
$status
+
$ret
`
...
...
@@ -510,7 +510,8 @@ if [ -x ${DELV} ] ; then
if
[
$ret
!=
0
]
;
then
echo
"I:failed"
;
fi
status
=
`
expr
$status
+
$ret
`
exit
$status
echo
"I:exit status:
$status
"
[
$status
-eq
0
]
||
exit
1
else
echo
"
$DELV
is needed, so skipping these delv tests"
fi
bin/tests/system/dlv/tests.sh
View file @
3635d8f9
...
...
@@ -59,4 +59,4 @@ if [ $ret != 0 ]; then echo "I:failed"; fi
status
=
`
expr
$status
+
$ret
`
echo
"I:exit status:
$status
"
exit
$status
[
$status
-eq
0
]
||
exit
1
bin/tests/system/dlvauto/tests.sh
View file @
3635d8f9
...
...
@@ -62,4 +62,5 @@ n=`expr $n + 1`
if
[
$ret
!=
0
]
;
then
echo
"I:failed"
;
fi
status
=
`
expr
$status
+
$ret
`
exit
$status
echo
"I:exit status:
$status
"
[
$status
-eq
0
]
||
exit
1
bin/tests/system/dlz/tests.sh
View file @
3635d8f9
...
...
@@ -79,4 +79,4 @@ if [ $ret != 0 ]; then echo "I:failed"; fi
status
=
`
expr
$status
+
$ret
`
echo
"I:exit status:
$status
"
exit
$status
[
$status
-eq
0
]
||
exit
1
bin/tests/system/dlzexternal/tests.sh
View file @
3635d8f9
...
...
@@ -202,4 +202,5 @@ lookups=`grep "lookup #.*\.not\.there" ns1/named.run | wc -l`
if
[
$ret
!=
0
]
;
then
echo
"I:failed"
;
fi
status
=
`
expr
$status
+
$ret
`
exit
$status
echo
"I:exit status:
$status
"
[
$status
-eq
0
]
||
exit
1
bin/tests/system/dname/tests.sh
View file @
3635d8f9
...
...
@@ -65,4 +65,4 @@ status=`expr $status + $ret`
echo
"I:exit status:
$status
"
exit
$status
[
$status
-eq
0
]
||
exit
1
bin/tests/system/dns64/tests.sh
View file @
3635d8f9
...
...
@@ -1370,4 +1370,4 @@ if [ $ret != 0 ]; then echo "I:failed"; fi
status
=
`
expr
$status
+
$ret
`
echo
"I:exit status:
$status
"
exit
$status
[
$status
-eq
0
]
||
exit
1
bin/tests/system/dnssec/tests.sh
View file @
3635d8f9
...
...
@@ -3295,4 +3295,4 @@ if [ $ret != 0 ]; then echo "I:failed"; fi
status
=
`
expr
$status
+
$ret
`
echo
"I:exit status:
$status
"
exit
$status
[
$status
-eq
0
]
||
exit
1
bin/tests/system/dnstap/tests.sh
View file @
3635d8f9
...
...
@@ -174,4 +174,4 @@ if [ $ret != 0 ]; then echo "I:failed"; fi
status
=
`
expr
$status
+
$ret
`
echo
"I:exit status:
$status
"
exit
$status
[
$status
-eq
0
]
||
exit
1
bin/tests/system/dscp/tests.sh
View file @
3635d8f9
...
...
@@ -38,4 +38,6 @@ do
done
test
$ret
=
0
||
{
echo
"I:failed"
;
status
=
`
expr
$status
+
$ret
`
;
}
done
exit
$status
echo
"I:exit status:
$status
"
[
$status
-eq
0
]
||
exit
1
bin/tests/system/dsdigest/tests.sh
View file @
3635d8f9
...
...
@@ -56,4 +56,4 @@ if [ $ret != 0 ]; then echo "I:failed"; fi
status
=
`
expr
$status
+
$ret
`
echo
"I:exit status:
$status
"
exit
$status
[
$status
-eq
0
]
||
exit
1
bin/tests/system/dyndb/tests.sh
View file @
3635d8f9
...
...
@@ -147,4 +147,5 @@ status=`expr $status + $ret`
test_del test6.ipv6.example.nil. AAAA
||
ret
=
1
status
=
`
expr
$status
+
$ret
`
exit
$status
echo
"I:exit status:
$status
"
[
$status
-eq
0
]
||
exit
1
bin/tests/system/ecdsa/tests.sh
View file @
3635d8f9
...
...
@@ -39,4 +39,4 @@ if [ $ret != 0 ]; then echo "I:failed"; fi
status
=
`
expr
$status
+
$ret
`
echo
"I:exit status:
$status
"
exit
$status
[
$status
-eq
0
]
||
exit
1
bin/tests/system/ednscompliance/tests.sh
View file @
3635d8f9
...
...
@@ -111,4 +111,4 @@ status=`expr $status + $ret`
n
=
`
expr
$n
+ 1
`
echo
"I:exit status:
$status
"
exit
$status
[
$status
-eq
0
]
||
exit
1
bin/tests/system/emptyzones/tests.sh
View file @
3635d8f9
...
...
@@ -40,4 +40,5 @@ grep "status: REFUSED" dig.out.test$n > /dev/null || ret=1
if
[
$ret
!=
0
]
;
then
echo
"I:failed"
;
fi
status
=
`
expr
$status
+
$ret
`
exit
$status
echo
"I:exit status:
$status
"
[
$status
-eq
0
]
||
exit
1
bin/tests/system/fetchlimit/tests.sh
View file @
3635d8f9
...
...
@@ -183,4 +183,4 @@ if [ $ret != 0 ]; then echo "I: failed"; fi
status
=
`
expr
$status
+
$ret
`
echo
"I:exit status:
$status
"
exit
$status
[
$status
-eq
0
]
||
exit
1
bin/tests/system/filter-aaaa/tests.sh
View file @
3635d8f9
...
...
@@ -1381,4 +1381,4 @@ if [ $ret != 0 ]; then echo "I:failed"; fi
status
=
`
expr
$status
+
$ret
`
echo
"I:exit status:
$status
"
exit
$status
[
$status
-eq
0
]
||
exit
1
bin/tests/system/formerr/tests.sh
View file @
3635d8f9
...
...
@@ -46,4 +46,4 @@ fi
echo
"I:exit status:
$status
"
exit
$status
[
$status
-eq
0
]
||
exit
1
bin/tests/system/forward/tests.sh
View file @
3635d8f9
...
...
@@ -138,4 +138,4 @@ if [ $ret != 0 ]; then echo "I:failed"; fi
status
=
`
expr
$status
+
$ret
`
echo
"I:exit status:
$status
"
exit
$status
[
$status
-eq
0
]
||
exit
1
bin/tests/system/geoip/tests.sh
View file @
3635d8f9
...
...
@@ -485,4 +485,4 @@ $CHECKCONF options.conf || ret=1
status
=
`
expr
$status
+
$ret
`
echo
"I:exit status:
$status
"
exit
$status
[
$status
-eq
0
]
||
exit
1
bin/tests/system/glue/tests.sh
View file @
3635d8f9
...
...
@@ -43,4 +43,4 @@ $DIG +norec @10.53.0.1 -p 5300 example.net. a > dig.out || status=1
$PERL
../digcomp.pl noglue.good dig.out
||
status
=
1
echo
"I:exit status:
$status
"
exit
$status
[
$status
-eq
0
]
||
exit
1
bin/tests/system/gost/tests.sh
View file @
3635d8f9
...
...
@@ -39,4 +39,4 @@ if [ $ret != 0 ]; then echo "I:failed"; fi
status
=
`
expr
$status
+
$ret
`
echo
"I:exit status:
$status
"
exit
$status
[
$status
-eq
0
]
||
exit
1
bin/tests/system/inline/tests.sh
View file @
3635d8f9
...
...
@@ -979,4 +979,5 @@ serial=`awk '$4 == "SOA" { print $7 }' dig.out.ns2.post.test$n`
if
[
$ret
!=
0
]
;
then
echo
"I:failed"
;
fi
status
=
`
expr
$status
+
$ret
`
exit
$status
echo
"I:exit status:
$status
"
[
$status
-eq
0
]
||
exit
1
bin/tests/system/ixfr/tests.sh
View file @
3635d8f9
...
...
@@ -266,4 +266,4 @@ if [ ${ret} != 0 ]; then
fi
echo
"I:exit status:
$status
"
exit
$status
[
$status
-eq
0
]
||
exit
1
bin/tests/system/keymgr/tests.sh
View file @
3635d8f9
...
...
@@ -103,4 +103,4 @@ status=`expr $status + $ret`
n
=
`
expr
$n
+ 1
`
echo
"I:exit status:
$status
"
exit
$status
[
$status
-eq
0
]
||
exit
1
bin/tests/system/legacy/tests.sh
View file @
3635d8f9
...
...
@@ -169,4 +169,4 @@ fi
echo
"I:exit status:
$status
"
exit
$status
[
$status
-eq
0
]
||
exit
1
bin/tests/system/limits/tests.sh
View file @
3635d8f9
...
...
@@ -57,4 +57,4 @@ grep 'flags: .*tc.*;' dig.out.exceed > /dev/null || {
}
echo
"I:exit status:
$status
"
exit
$status
[
$status
-eq
0
]
||
exit
1
bin/tests/system/logfileconfig/tests.sh
View file @
3635d8f9
...
...
@@ -268,4 +268,4 @@ else
fi
echo
"I:exit status:
$status
"
exit
$status
[
$status
-eq
0
]
||
exit
1
bin/tests/system/lwresd/tests.sh
View file @
3635d8f9
...
...
@@ -71,4 +71,4 @@ fi
status
=
`
expr
$status
+
$ret
`
echo
"I:exit status:
$status
"
exit
$status
[
$status
-eq
0
]
||
exit
1
bin/tests/system/masterfile/tests.sh
View file @
3635d8f9
...
...
@@ -63,4 +63,4 @@ if [ $ret != 0 ]; then echo "I:failed"; fi
status
=
`
expr
$status
+
$ret
`
echo
"I:exit status:
$status
"
exit
$status
[
$status
-eq
0
]
||
exit
1
bin/tests/system/masterformat/tests.sh
View file @
3635d8f9
...
...
@@ -290,4 +290,4 @@ grep 'next resign' rndc.out > /dev/null 2>&1 || ret=1
status
=
`
expr
$status
+
$ret
`
echo
"I:exit status:
$status
"
exit
$status
[
$status
-eq
0
]
||
exit
1
bin/tests/system/metadata/tests.sh
View file @
3635d8f9
...
...
@@ -192,4 +192,4 @@ if [ $ret != 0 ]; then echo "I:failed"; fi
status
=
`
expr
$status
+
$ret
`
echo
"I:exit status:
$status
"
exit
$status
[
$status
-eq
0
]
||
exit
1
bin/tests/system/mkeys/tests.sh
View file @
3635d8f9
...
...
@@ -543,4 +543,4 @@ if [ $ret != 0 ]; then echo "I:failed"; fi
status
=
`
expr
$status
+
$ret
`
echo
"I:exit status:
$status
"
exit
$status
[
$status
-eq
0
]
||
exit
1
bin/tests/system/names/tests.sh
View file @
3635d8f9
...
...
@@ -48,4 +48,4 @@ if [ $val -le 1 ]; then
fi
;
echo
"I:exit status:
$status
"
exit
$status
[
$status
-eq
0
]
||
exit
1
bin/tests/system/notify/tests.sh
View file @
3635d8f9
...
...
@@ -213,4 +213,4 @@ grep "test string" dig.out.c.ns5.test$n > /dev/null || ret=1
status
=
`
expr
$ret
+
$status
`
echo
"I:exit status:
$status
"
exit
$status
[
$status
-eq
0
]
||
exit
1
bin/tests/system/nslookup/tests.sh
View file @
3635d8f9
...
...
@@ -32,5 +32,4 @@ if [ $ret != 0 ]; then echo "I:failed"; fi
status
=
`
expr
$status
+
$ret
`
echo
"I:exit status:
$status
"
exit
$status
[
$status
-eq
0
]
||
exit
1
bin/tests/system/nsupdate/tests.sh
View file @
3635d8f9
...
...
@@ -657,4 +657,4 @@ grep "bad name" nsupdate.out4-$n > /dev/null && ret=1
[
$ret
=
0
]
||
{
echo
I:failed
;
status
=
1
;
}
echo
"I:exit status:
$status
"
exit
$status
[
$status
-eq
0
]
||
exit
1
bin/tests/system/pending/tests.sh
View file @
3635d8f9
...
...
@@ -201,4 +201,4 @@ test $ret = 0 || echo I:failed, got "'""$ans""'", expected "'""$expect""'"
status
=
`
expr
$status
+
$ret
`
echo
"I:exit status:
$status
"
exit
$status
[
$status
-eq
0
]
||
exit
1
bin/tests/system/pipelined/tests.sh
View file @
3635d8f9
...
...
@@ -60,4 +60,4 @@ if [ $ret != 0 ]; then echo "I:failed"; fi
status
=
`
expr
$status
+
$ret
`
echo
"I:exit status:
$status
"
exit
$status
[
$status
-eq
0
]
||
exit
1
bin/tests/system/pkcs11/tests.sh
View file @
3635d8f9
...
...
@@ -79,4 +79,4 @@ END
done
echo
"I:exit status:
$status
"
exit
$status
[
$status
-eq
0
]
||
exit
1
bin/tests/system/pkcs11ssl/tests.sh
View file @
3635d8f9
...
...
@@ -66,4 +66,4 @@ if [ $count != 0 ]; then echo "I:failed"; fi
status
=
`
expr
$status
+
$count
`
echo
"I:exit status:
$status
"
exit
$status
[
$status
-eq
0
]
||
exit
1
bin/tests/system/reclimit/tests.sh
View file @
3635d8f9
...
...
@@ -190,4 +190,4 @@ if [ $ret != 0 ]; then echo "I:failed"; fi
status
=
`
expr
$status
+
$ret
`
echo
"I:exit status:
$status
"
exit
$status
[
$status
-eq
0
]
||
exit
1
bin/tests/system/redirect/tests.sh
View file @
3635d8f9
...
...
@@ -525,4 +525,4 @@ if [ $ret != 0 ]; then echo "I:failed"; fi
status
=
`
expr
$status
+
$ret
`
echo
"I:exit status:
$status
"
exit
$status
[
$status
-eq
0
]
||
exit
1
bin/tests/system/resolver/tests.sh
View file @
3635d8f9
...
...
@@ -688,5 +688,6 @@ ttl=`awk '/"A" "zero" "ttl"/ { print $2 }' dig.out.1.${n}`
test
${
ttl
:-
1
}
-eq
0
||
ret
=
1
if
[
$ret
!=
0
]
;
then
echo
"I:failed"
;
fi
status
=
`
expr
$status
+
$ret
`
echo
"I:exit status:
$status
"
exit
$status
[
$status
-eq
0
]
||
exit
1
bin/tests/system/rndc/tests.sh
View file @
3635d8f9
...
...
@@ -557,4 +557,5 @@ EOF
status
=
`
expr
$status
+
$ret
`
fi
exit
$status
echo
"I:exit status:
$status
"
[
$status
-eq
0
]
||
exit
1
bin/tests/system/rpz/tests.sh
View file @
3635d8f9
...
...
@@ -647,4 +647,4 @@ $DIG -p 5300 @$ns3 ns example.com > dig.out.delegation
grep
"status: SERVFAIL"
dig.out.delegation
>
/dev/null
||
setret
"I:failed"
echo
"I:exit status:
$status
"
exit
$status
[
$status
-eq
0
]
||
exit
1
bin/tests/system/rpzrecurse/tests.sh
View file @
3635d8f9
...
...
@@ -335,5 +335,5 @@ if test $p1 -le $p2; then ret=1; fi
if
test
$ret
!=
0
;
then
echo
"I:failed"
;
fi
status
=
`
expr
$status
+
$ret
`
exit
$status
echo
"I:exit status:
$status
"
[
$status
-eq
0
]
||
exit
1
bin/tests/system/rrchecker/tests.sh
View file @
3635d8f9
...
...
@@ -79,4 +79,4 @@ done
test
$ret
-eq
0
||
{
echo
"I:failed"
;
status
=
`
expr
$status
+ 1
`
;
}
echo
"I:exit status:
$status
"
exit
$status
[
$status
-eq
0
]
||
exit
1
bin/tests/system/rrl/tests.sh
View file @
3635d8f9
...
...
@@ -284,6 +284,6 @@ if [ -f named.pid ]; then
fi
echo
"I:exit status:
$ret
"
exit
$ret
[
$ret
-eq
0
]
||
exit
1
#[ $ret -ne 0 ] && echo "I:test failure overridden"
#exit
0
#
[ $status -eq 0 ] ||
exit
1
bin/tests/system/rrsetorder/tests.sh
View file @
3635d8f9
...
...
@@ -475,4 +475,4 @@ if [ $ret != 0 ]; then echo "I:failed"; fi
status
=
`
expr
$status
+
$ret
`
echo
"I:exit status:
$status
"
exit
$status
[
$status
-eq
0
]
||
exit
1
bin/tests/system/rsabigexponent/tests.sh
View file @
3635d8f9
...
...
@@ -59,4 +59,4 @@ if [ $ret != 0 ]; then echo "I:failed"; fi
status
=
`
expr
$status
+
$ret
`
echo
"I:exit status:
$status
"
exit
$status
[
$status
-eq
0
]
||
exit
1
bin/tests/system/runtime/tests.sh
View file @
3635d8f9
...
...
@@ -58,4 +58,5 @@ if [ $ret != 0 ]; then echo "I:failed"; fi
status
=
`
expr
$status
+
$ret
`
exit
$status
echo
"I:exit status:
$status
"
[
$status
-eq
0
]
||
exit
1
bin/tests/system/sfcache/tests.sh
View file @
3635d8f9
...
...
@@ -97,4 +97,4 @@ if [ $ret != 0 ]; then echo "I:failed"; fi
status
=
`
expr
$status
+
$ret
`
echo
"I:exit status:
$status
"
exit
$status
[
$status
-eq
0
]
||
exit
1
bin/tests/system/smartsign/tests.sh
View file @
3635d8f9
...
...
@@ -343,4 +343,4 @@ if [ $ret != 0 ]; then echo "I:failed"; fi
status
=
`
expr
$status
+
$ret
`
echo
"I:exit status:
$status
"
exit
$status
[
$status
-eq
0
]
||
exit
1
bin/tests/system/sortlist/tests.sh
View file @
3635d8f9
...
...
@@ -57,4 +57,4 @@ $DIG +tcp +noadd +nosea +nostat +noquest +noauth +nocomm +nocmd \
egrep
'10.53.0.5$'
>>
test2.out
||
status
=
1
echo
"I:exit status:
$status
"
exit
$status
[
$status
-eq
0
]
||
exit
1
bin/tests/system/spf/tests.sh
View file @
3635d8f9
...
...
@@ -39,4 +39,4 @@ if [ $ret != 0 ]; then echo "I:failed"; fi
status
=
`
expr
$status
+
$ret
`
echo
"I:exit status:
$status
"
exit
$status
[
$status
-eq
0
]
||
exit
1
bin/tests/system/staticstub/tests.sh
View file @
3635d8f9
...
...
@@ -214,4 +214,4 @@ if [ $ret != 0 ]; then echo "I:failed"; fi
status
=
`
expr
$status
+
$ret
`
echo
"I:exit status:
$status
"
exit
$status
[
$status
-eq
0
]
||
exit
1
Prev
1
2
Next
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment