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
591
Issues
591
List
Boards
Labels
Service Desk
Milestones
Merge Requests
113
Merge Requests
113
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
673cd0be
Commit
673cd0be
authored
Jan 22, 2019
by
Evan Hunt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix cookie test
strip CR characters before comparing files
parent
097cbec3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
11 deletions
+11
-11
bin/tests/system/cookie/tests.sh
bin/tests/system/cookie/tests.sh
+11
-11
No files found.
bin/tests/system/cookie/tests.sh
View file @
673cd0be
...
...
@@ -21,7 +21,7 @@ n=0
getcookie
()
{
awk
'$2 == "COOKIE:" {
print $3;
}'
<
$1
}'
<
$1
|
tr
-d
'\r'
}
fullcookie
()
{
...
...
@@ -37,21 +37,21 @@ havetc() {
for
bad
in
bad
*
.conf
do
n
=
`
expr
$n
+ 1
`
echo_i
"checking that named-checkconf detects error in
$bad
(
$n
)"
ret
=
0
$CHECKCONF
$bad
>
/dev/null 2>&1
&&
ret
=
1
if
[
$ret
!=
0
]
;
then
echo_i
"failed"
;
fi
status
=
`
expr
$status
+
$ret
`
echo_i
"checking that named-checkconf detects error in
$bad
(
$n
)"
ret
=
0
$CHECKCONF
$bad
>
/dev/null 2>&1
&&
ret
=
1
if
[
$ret
!=
0
]
;
then
echo_i
"failed"
;
fi
status
=
`
expr
$status
+
$ret
`
done
for
good
in
good
*
.conf
do
n
=
`
expr
$n
+ 1
`
echo_i
"checking that named-checkconf detects accepts
$good
(
$n
)"
ret
=
0
$CHECKCONF
$good
>
/dev/null 2>&1
||
ret
=
1
if
[
$ret
!=
0
]
;
then
echo_i
"failed"
;
fi
status
=
`
expr
$status
+
$ret
`
echo_i
"checking that named-checkconf detects accepts
$good
(
$n
)"
ret
=
0
$CHECKCONF
$good
>
/dev/null 2>&1
||
ret
=
1
if
[
$ret
!=
0
]
;
then
echo_i
"failed"
;
fi
status
=
`
expr
$status
+
$ret
`
done
n
=
`
expr
$n
+ 1
`
...
...
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