Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
BIND
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
608
Issues
608
List
Boards
Labels
Service Desk
Milestones
Merge Requests
115
Merge Requests
115
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ISC Open Source Projects
BIND
Commits
9470e9e4
Verified
Commit
9470e9e4
authored
Jul 28, 2020
by
Michal Nowak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ensure test fails if packet.pl does not work as expected
parent
d6262053
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
bin/tests/system/nsupdate/tests.sh
bin/tests/system/nsupdate/tests.sh
+3
-3
bin/tests/system/tsig/tests.sh
bin/tests/system/tsig/tests.sh
+1
-1
No files found.
bin/tests/system/nsupdate/tests.sh
View file @
9470e9e4
...
...
@@ -243,7 +243,7 @@ n=`expr $n + 1`
ret
=
0
echo_i
"check that TYPE=0 update is handled (
$n
)"
echo
"a0e4280000010000000100000000060001c00c000000fe000000000000"
|
$PERL
../packet.pl
-a
10.53.0.1
-p
${
PORT
}
-t
tcp
>
/dev/null
$PERL
../packet.pl
-a
10.53.0.1
-p
${
PORT
}
-t
tcp
>
/dev/null
||
ret
=
1
$DIG
$DIGOPTS
+tcp version.bind txt ch @10.53.0.1
>
dig.out.ns1.
$n
grep
"status: NOERROR"
dig.out.ns1.
$n
>
/dev/null
||
ret
=
1
[
$ret
=
0
]
||
{
echo_i
"failed"
;
status
=
1
;
}
...
...
@@ -252,7 +252,7 @@ n=`expr $n + 1`
ret
=
0
echo_i
"check that TYPE=0 additional data is handled (
$n
)"
echo
"a0e4280000010000000000010000060001c00c000000fe000000000000"
|
$PERL
../packet.pl
-a
10.53.0.1
-p
${
PORT
}
-t
tcp
>
/dev/null
$PERL
../packet.pl
-a
10.53.0.1
-p
${
PORT
}
-t
tcp
>
/dev/null
||
ret
=
1
$DIG
$DIGOPTS
+tcp version.bind txt ch @10.53.0.1
>
dig.out.ns1.
$n
grep
"status: NOERROR"
dig.out.ns1.
$n
>
/dev/null
||
ret
=
1
[
$ret
=
0
]
||
{
echo_i
"failed"
;
status
=
1
;
}
...
...
@@ -261,7 +261,7 @@ n=`expr $n + 1`
ret
=
0
echo_i
"check that update to undefined class is handled (
$n
)"
echo
"a0e4280000010001000000000000060101c00c000000fe000000000000"
|
$PERL
../packet.pl
-a
10.53.0.1
-p
${
PORT
}
-t
tcp
>
/dev/null
$PERL
../packet.pl
-a
10.53.0.1
-p
${
PORT
}
-t
tcp
>
/dev/null
||
ret
=
1
$DIG
$DIGOPTS
+tcp version.bind txt ch @10.53.0.1
>
dig.out.ns1.
$n
grep
"status: NOERROR"
dig.out.ns1.
$n
>
/dev/null
||
ret
=
1
[
$ret
=
0
]
||
{
echo_i
"failed"
;
status
=
1
;
}
...
...
bin/tests/system/tsig/tests.sh
View file @
9470e9e4
...
...
@@ -220,7 +220,7 @@ fi
echo_i
"check that a 'BADTIME' response with 'QR=0' is handled as a request"
ret
=
0
$PERL
../packet.pl
-a
10.53.0.1
-p
${
PORT
}
-t
tcp < badtime
>
/dev/null
$PERL
../packet.pl
-a
10.53.0.1
-p
${
PORT
}
-t
tcp < badtime
>
/dev/null
||
ret
=
1
$DIG
-p
${
PORT
}
@10.53.0.1 version.bind txt ch
>
dig.out.verify
||
ret
=
1
grep
"status: NOERROR"
dig.out.verify
>
/dev/null
||
ret
=
1
if
[
$ret
-eq
1
]
;
then
...
...
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