Commit 5efcb3a3 authored by Evan Hunt's avatar Evan Hunt
Browse files

[master] fix test errors

- require 5.006_001
- cut off the least significant figures of rrsig dates before
  comparison to avoid integer overflow
parent 846cb701
......@@ -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"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment