mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-22 10:10:06 +00:00
[master] fix test errors
- require 5.006_001 - cut off the least significant figures of rrsig dates before comparison to avoid integer overflow
This commit is contained in:
parent
846cb7015b
commit
5efcb3a3e2
@ -45,7 +45,7 @@
|
||||
#
|
||||
# XXX: Doesn't support IPv6 yet
|
||||
|
||||
require 5.006.001;
|
||||
require 5.006_001;
|
||||
|
||||
use strict;
|
||||
use Getopt::Std;
|
||||
|
@ -314,10 +314,13 @@ status=`expr $status + $ret`
|
||||
|
||||
echo "I:checking RRSIG expiry date correctness"
|
||||
dnskey_expiry=`$CHECKZONE -o - $czone $cfile.signed 2> /dev/null |
|
||||
awk '$4 == "RRSIG" && $5 == "DNSKEY" {print $9; exit}'`
|
||||
awk '$4 == "RRSIG" && $5 == "DNSKEY" {print $9; exit}' |
|
||||
cut -c1-10`
|
||||
soa_expiry=`$CHECKZONE -o - $czone $cfile.signed 2> /dev/null |
|
||||
awk '$4 == "RRSIG" && $5 == "SOA" {print $9; exit}'`
|
||||
awk '$4 == "RRSIG" && $5 == "SOA" {print $9; exit}' |
|
||||
cut -c1-10`
|
||||
[ $dnskey_expiry -gt $soa_expiry ] || ret=1
|
||||
if [ $ret != 0 ]; then echo "I:failed"; fi
|
||||
status=`expr $status + $ret`
|
||||
|
||||
echo "I:waiting 30 seconds for key activation"
|
||||
|
Loading…
x
Reference in New Issue
Block a user