mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-10 08:10:00 -04:00
wait for test zones to have loaded
This commit is contained in:
parent
af34310238
commit
baabfdc0d9
1 changed files with 12 additions and 1 deletions
|
|
@ -15,13 +15,24 @@
|
|||
# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
||||
# PERFORMANCE OF THIS SOFTWARE.
|
||||
|
||||
# $Id: tests.sh,v 1.33 2007/06/19 23:47:04 tbox Exp $
|
||||
# $Id: tests.sh,v 1.34 2011/10/14 12:02:12 marka Exp $
|
||||
|
||||
SYSTEMTESTTOP=..
|
||||
. $SYSTEMTESTTOP/conf.sh
|
||||
|
||||
status=0
|
||||
|
||||
for i in 1 2 3 4 5 6 7 8 9 10
|
||||
do
|
||||
ret=0
|
||||
$DIG +tcp example @10.53.0.2 soa -p 5300 > dig.out.ns2 || ret=1
|
||||
grep "status: NOERROR" dig.out.ns2 > /dev/null || ret=1
|
||||
$DIG +tcp example @10.53.0.3 soa -p 5300 > dig.out.ns3 || ret=1
|
||||
grep "status: NOERROR" dig.out.ns3 > /dev/null || ret=1
|
||||
[ $ret = 0 ] && break
|
||||
sleep 1
|
||||
done
|
||||
|
||||
$DIG +tcp +noadd +nosea +nostat +noquest +nocomm +nocmd a.example.\
|
||||
@10.53.0.2 a -p 5300 > dig.out.ns2 || status=1
|
||||
grep ";" dig.out.ns2
|
||||
|
|
|
|||
Loading…
Reference in a new issue