check that all servers have finished loading before beginging tests

(cherry picked from commit 4a992c7a18)
This commit is contained in:
Mark Andrews
2020-01-24 08:20:31 +11:00
parent 20716074e9
commit a262ff515b
2 changed files with 11 additions and 0 deletions
+1
View File
@@ -12,6 +12,7 @@
rm -f */named.conf
rm -f */named.memstats
rm -f */named.run
rm -f */named.run.prev
rm -f */named.stats
rm -f dig.out*
rm -f dnstap.out
+10
View File
@@ -35,6 +35,15 @@ do
status=`expr $status + $ret`
done
echo_i "wait for servers to finish loading"
ret=0
wait_for_log 20 "all zones loaded" ns1/named.run || ret=1
wait_for_log 20 "all zones loaded" ns2/named.run || ret=1
wait_for_log 20 "all zones loaded" ns3/named.run || ret=1
wait_for_log 20 "all zones loaded" ns4/named.run || ret=1
if [ $ret != 0 ]; then echo_i "failed"; fi
status=`expr $status + $ret`
$DIG $DIGOPTS @10.53.0.3 a.example > dig.out
# check three different dnstap reopen/roll methods:
@@ -63,6 +72,7 @@ $DIG $DIGOPTS @10.53.0.3 a.example > dig.out
$RNDCCMD -s 10.53.0.1 stop | sed 's/^/ns1 /' | cat_i
$RNDCCMD -s 10.53.0.2 stop | sed 's/^/ns2 /' | cat_i
$RNDCCMD -s 10.53.0.3 stop | sed 's/^/ns3 /' | cat_i
sleep 1
echo_i "checking initial message counts"