Skip to content
GitLab
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
7b042160
Commit
7b042160
authored
Sep 30, 2014
by
Evan Hunt
Browse files
[master] improve dlzexternal test
3963. [test] Added NXRRSET test cases to the "dlzexternal" system test. [RT #37344]
parent
7d891eaf
Changes
2
Hide whitespace changes
Inline
Side-by-side
CHANGES
View file @
7b042160
3963. [test] Added NXRRSET test cases to the "dlzexternal"
system test. [RT #37344]
3962. [bug] 'dig +topdown +trace +sigchase' address unhandled error
conditions. [RT #34663]
...
...
bin/tests/system/dlzexternal/tests.sh
View file @
7b042160
...
...
@@ -72,6 +72,12 @@ status=`expr $status + $ret`
test_update deny.example.nil. TXT
"86400 TXT helloworld"
"helloworld"
should_fail
&&
ret
=
1
status
=
`
expr
$status
+
$ret
`
newtest
"I:testing nxrrset"
$DIG
$DIGOPTS
testdc1.example.nil AAAA
>
dig.out.
$n
grep
"status: NOERROR"
dig.out.
$n
>
/dev/null
||
ret
=
1
grep
"ANSWER: 0"
dig.out.
$n
>
/dev/null
||
ret
=
1
status
=
`
expr
$status
+
$ret
`
newtest
"I:testing prerequisites are checked correctly"
cat
>
ns1/update.txt
<<
EOF
server 10.53.0.1 5300
...
...
@@ -181,6 +187,13 @@ grep "flags:[^;]* aa[ ;]" dig.out.ns1.test$n > /dev/null || ret=1
if
[
$ret
!=
0
]
;
then
echo
"I:failed"
;
fi
status
=
`
expr
$status
+
$ret
`
newtest
"I:checking no redirected lookup for nonexistent type"
$DIG
$DIGOPTS
@10.53.0.1 exists aaaa
>
dig.out.ns1.test
$n
||
ret
=
1
grep
"status: NOERROR"
dig.out.ns1.test
$n
>
/dev/null
||
ret
=
1
grep
"ANSWER: 0"
dig.out.ns1.test
$n
>
/dev/null
||
ret
=
1
if
[
$ret
!=
0
]
;
then
echo
"I:failed"
;
fi
status
=
`
expr
$status
+
$ret
`
newtest
"I:checking redirected lookup for a long nonexistent name"
$DIG
$DIGOPTS
@10.53.0.1 long.name.is.not.there a
>
dig.out.ns1.test
$n
||
ret
=
1
grep
"status: NOERROR"
dig.out.ns1.test
$n
>
/dev/null
||
ret
=
1
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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