Skip to content
GitLab
Menu
Projects
Groups
Snippets
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
c26a421a
Commit
c26a421a
authored
Apr 17, 2019
by
Mark Andrews
Browse files
check that delv -t any works
(cherry picked from commit
6999bee7
)
parent
59554432
Changes
1
Hide whitespace changes
Inline
Side-by-side
bin/tests/system/digdelv/tests.sh
View file @
c26a421a
...
...
@@ -517,7 +517,7 @@ else
fi
# using delv insecure mode as not testing dnssec here
DELVOPTS
=
"
-i
-p
${
PORT
}
"
DELVOPTS
=
"
+noroot +nodlv
-p
${
PORT
}
"
if
[
-x
${
DELV
}
]
;
then
n
=
`
expr
$n
+ 1
`
...
...
@@ -721,13 +721,23 @@ if [ -x ${DELV} ] ; then
n
=
`
expr
$n
+ 1
`
echo_i
"check that delv -q -m works (
$n
)"
ret
=
0
$DELV
$DELVOPTS
@10.53.0.3
-q
-m
>
delv.out.test
$n
2>&1
$DELV
$DELVOPTS
@10.53.0.3
-q
-m
>
delv.out.test
$n
2>&1
||
ret
=
1
grep
'^; -m\..*[0-9]*.*IN.*ANY.*;'
delv.out.test
$n
>
/dev/null
||
ret
=
1
grep
"^add "
delv.out.test
$n
>
/dev/null
&&
ret
=
1
grep
"^del "
delv.out.test
$n
>
/dev/null
&&
ret
=
1
check_ttl_range delv.out.test
$n
'\\-ANY'
300 3
||
ret
=
1
if
[
$ret
!=
0
]
;
then
echo_i
"failed"
;
fi
status
=
`
expr
$status
+
$ret
`
n
=
`
expr
$n
+ 1
`
echo_i
"check that delv -t ANY works (
$n
)"
ret
=
0
$DELV
$DELVOPTS
@10.53.0.3
-t
ANY example
>
delv.out.test
$n
2>&1
||
ret
=
1
grep
"^example."
< delv.out.test
$n
>
/dev/null
||
ret
=
1
check_ttl_range delv.out.test
$n
NS 300
||
ret
=
1
check_ttl_range delv.out.test
$n
SOA 300
||
ret
=
1
if
[
$ret
!=
0
]
;
then
echo_i
"failed"
;
fi
status
=
`
expr
$status
+
$ret
`
else
echo_i
"
$DELV
is needed, so skipping these delv tests"
fi
...
...
Write
Preview
Supports
Markdown
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