mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 22:45:39 +00:00
Merge branch 'each-dupsigs-test' into 'main'
make dupsigs test less timing-sensitive See merge request isc-projects/bind9!6998
This commit is contained in:
@@ -12,13 +12,30 @@
|
|||||||
. ../conf.sh
|
. ../conf.sh
|
||||||
|
|
||||||
status=0
|
status=0
|
||||||
|
|
||||||
|
# Wait for the zone to be fully signed before beginning test
|
||||||
|
#
|
||||||
|
# We expect the zone to have the following:
|
||||||
|
#
|
||||||
|
# - 5 signatures for signing.test.
|
||||||
|
# - 3 signatures for ns.signing.test.
|
||||||
|
# - 2 x 500 signatures for a{0000-0499}.signing.test.
|
||||||
|
#
|
||||||
|
# for a total of 1008.
|
||||||
|
fully_signed () {
|
||||||
|
$DIG axfr signing.test -p ${PORT} @10.53.0.1 |
|
||||||
|
awk 'BEGIN { lines = 0 }
|
||||||
|
$4 == "RRSIG" {lines++}
|
||||||
|
END { if (lines != 1008) exit(1) }'
|
||||||
|
}
|
||||||
|
retry_quiet 30 fully_signed || ret=1
|
||||||
|
|
||||||
start=`date +%s`
|
start=`date +%s`
|
||||||
end=`expr $start + 150`
|
now=$start
|
||||||
sleep 10 # wait for a bit for the initial signing
|
end=$((start + 140))
|
||||||
now=`expr $start + 10`
|
|
||||||
while test $now -lt $end
|
while [ $now -lt $end ]; do
|
||||||
do
|
et=$((now - start))
|
||||||
et=`expr $now - $start`
|
|
||||||
echo "=============== $et ============"
|
echo "=============== $et ============"
|
||||||
$JOURNALPRINT ns1/signing.test.db.signed.jnl | $PERL check_journal.pl
|
$JOURNALPRINT ns1/signing.test.db.signed.jnl | $PERL check_journal.pl
|
||||||
$DIG axfr signing.test -p ${PORT} @10.53.0.1 > dig.out.at$et
|
$DIG axfr signing.test -p ${PORT} @10.53.0.1 > dig.out.at$et
|
||||||
@@ -27,7 +44,7 @@ do
|
|||||||
if [ ${et} -ne 0 -a ${lines} -ne 1008 ]
|
if [ ${et} -ne 0 -a ${lines} -ne 1008 ]
|
||||||
then
|
then
|
||||||
echo_i "failed"
|
echo_i "failed"
|
||||||
status=`expr $status + 1`
|
status=$((status + 1))
|
||||||
fi
|
fi
|
||||||
sleep 5
|
sleep 5
|
||||||
now=`date +%s`
|
now=`date +%s`
|
||||||
|
Reference in New Issue
Block a user