2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 14:35:26 +00:00

update check the correct resigning time is reported in zonestatus test to be more portable

This commit is contained in:
Mark Andrews
2014-04-07 11:50:50 +10:00
parent 1756e623f9
commit a4941d6b5e

View File

@@ -2454,9 +2454,7 @@ time=`awk 'BEGIN { m["Jan"] = "01"; m["Feb"] = "02"; m["Mar"] = "03";
$DIG $DIGOPTS +noall +answer $name @10.53.0.3 -p 5300 > dig.out.test$n
expire=`awk '$4 == "RRSIG" { print $9 }' dig.out.test$n`
inception=`awk '$4 == "RRSIG" { print $10 }' dig.out.test$n`
t1=`echo "$time < $expire" | bc`
t2=`echo "$time > $inception" | bc`
[ "$t1" = 1 -a "$t2" = 1 ] || ret=1
test "$time" "<" "$expire" -a "$time" ">" "$inception" || ret=1
n=`expr $n + 1`
if [ $ret != 0 ]; then echo "I:failed"; fi
status=`expr $status + $ret`