Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISC Open Source Projects
BIND
Commits
ab94dd50
Commit
ab94dd50
authored
Dec 08, 2015
by
Curtis Blackburn
Browse files
[rt40181] added tests for dig +short +nosplit/+rrcomments (see rt39291)
parent
be123554
Changes
1
Hide whitespace changes
Inline
Side-by-side
bin/tests/system/digdelv/tests.sh
View file @
ab94dd50
...
...
@@ -86,6 +86,22 @@ if [ -x ${DIG} ] ; then
if
[
$ret
!=
0
]
;
then
echo
"I:failed"
;
fi
status
=
`
expr
$status
+
$ret
`
n
=
`
expr
$n
+ 1
`
echo
"I:checking dig +short +nosplit works(
$n
)"
ret
=
0
$DIG
$DIGOPTS
+tcp @10.53.0.3 +short +nosplit DNSKEY dnskey.example
>
dig.out.test
$n
||
ret
=
1
grep
"Z8plc4Rb9VIE5x7KNHAYTvTO5d4S8M=$"
< dig.out.test
$n
>
/dev/null
||
ret
=
1
if
[
$ret
!=
0
]
;
then
echo
"I:failed"
;
fi
status
=
`
expr
$status
+
$ret
`
n
=
`
expr
$n
+ 1
`
echo
"I:checking dig +short +rrcomments works(
$n
)"
ret
=
0
$DIG
$DIGOPTS
+tcp @10.53.0.3 +short +rrcomments DNSKEY dnskey.example
>
dig.out.test
$n
||
ret
=
1
grep
"S8M= ; ZSK; alg = RSAMD5 ; key id = 30795$"
< dig.out.test
$n
>
/dev/null
||
ret
=
1
if
[
$ret
!=
0
]
;
then
echo
"I:failed"
;
fi
status
=
`
expr
$status
+
$ret
`
else
echo
"
$DIG
is needed, so skipping these dig tests"
fi
...
...
@@ -179,6 +195,14 @@ if [ -x ${DELV} ] ; then
if
[
$ret
!=
0
]
;
then
echo
"I:failed"
;
fi
status
=
`
expr
$status
+
$ret
`
n
=
`
expr
$n
+ 1
`
echo
"I:checking delv +short +rrcomments works(
$n
)"
ret
=
0
$DELV
$DELVOPTS
+tcp @10.53.0.3 +short +rrcomments DNSKEY dnskey.example
>
delv.out.test
$n
||
ret
=
1
grep
"S8M= ; ZSK; alg = RSAMD5 ; key id = 30795$"
< delv.out.test
$n
>
/dev/null
||
ret
=
1
if
[
$ret
!=
0
]
;
then
echo
"I:failed"
;
fi
status
=
`
expr
$status
+
$ret
`
exit
$status
else
echo
"
$DELV
is needed, so skipping these delv tests"
...
...
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