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
6a4d6e33
Commit
6a4d6e33
authored
Dec 02, 2009
by
Evan Hunt
Browse files
adapted to the special needs of solaris's really old awk
parent
5d698de5
Changes
1
Hide whitespace changes
Inline
Side-by-side
bin/tests/system/metadata/tests.sh
View file @
6a4d6e33
...
...
@@ -14,7 +14,7 @@
# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
# PERFORMANCE OF THIS SOFTWARE.
# $Id: tests.sh,v 1.
4
2009/12/02
05:42:1
5 each Exp $
# $Id: tests.sh,v 1.
5
2009/12/02
17:54:4
5 each Exp $
SYSTEMTESTTOP
=
..
.
$SYSTEMTESTTOP
/conf.sh
...
...
@@ -43,23 +43,23 @@ echo "I:signing zones"
$SIGNER
-Sg
-o
$czone
$cfile
>
/dev/null 2>&1
$SIGNER
-Sg
-o
$pzone
$pfile
>
/dev/null 2>&1
awk
-v
CZ
=
"
${
czone
}
."
'$2 ~ /RRSIG/ {
awk
'$2 ~ /RRSIG/ {
type = $3;
getline;
id = $2;
if ($3 ~
CZ
) {
print type, id
}
id = $2;
if ($3 ~
/'
${
czone
}
'/
) {
print type, id
}
}'
<
${
cfile
}
.signed
>
sigs
awk
'$2 ~ /DNSKEY/ {
flags = $3;
while ($0 !~
"
key id =
"
)
getline;
id = $6;
print flags, id;
flags = $3;
while ($0 !~
/
key id =
/
)
getline;
id = $6;
print flags, id;
}'
<
${
cfile
}
.signed
>
keys
echo
"I:checking that KSK signed DNSKEY only (
$n
)"
ret
=
0
grep
"DNSKEY
$ksk
"
'$'
sigs
>
/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