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
5b56f2e3
Commit
5b56f2e3
authored
May 01, 2014
by
Mark Andrews
Browse files
zero pad date and month fields
parent
c2abd6ef
Changes
2
Hide whitespace changes
Inline
Side-by-side
bin/tests/system/dnssec/tests.sh
View file @
5b56f2e3
...
...
@@ -1542,7 +1542,7 @@ ret=0
cd
signer
$SIGNER
-O
full
-f
signer.out.9
-S
-N
date
-o
example example2.db
>
/dev/null 2>&1
)
||
ret
=
1
now
=
`
$PERL
-e
'@lt=localtime(); printf "%.4d%.2d%2d00\n",$lt[5]+1900,$lt[4]+1,$lt[3];'
`
now
=
`
$PERL
-e
'@lt=localtime(); printf "%.4d%
0
.2d%
0.
2d00\n",$lt[5]+1900,$lt[4]+1,$lt[3];'
`
serial
=
`
awk
'/^;/ { next; } $4 == "SOA" { print $7 }'
signer/signer.out.9
`
[
"
$now
"
-eq
"
$serial
"
]
||
ret
=
1
if
[
$ret
!=
0
]
;
then
echo
"I:failed"
;
fi
...
...
bin/tests/system/nsupdate/tests.sh
View file @
5b56f2e3
...
...
@@ -590,7 +590,7 @@ $NSUPDATE <<END > /dev/null 2>&1 || ret=1
update add new.yyyymmddvv.nil in a 1.2.3.4
send
END
now
=
`
$PERL
-e
'@lt=localtime(); printf "%.4d%.2d%2d00\n",$lt[5]+1900,$lt[4]+1,$lt[3];'
`
now
=
`
$PERL
-e
'@lt=localtime(); printf "%.4d%
0
.2d%
0.
2d00\n",$lt[5]+1900,$lt[4]+1,$lt[3];'
`
sleep
1
serial
=
`
$DIG
+short yyyymmddvv.nil. soa @10.53.0.1
-p
5300 |
awk
'{print $3}'
`
||
ret
=
1
[
"
$oldserial
"
-ne
"
$serial
"
]
||
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