From 1de8cd761e1439e0e9caee1d4a4f3637be56be6c Mon Sep 17 00:00:00 2001 From: Andreas Gustafsson Date: Fri, 2 Jun 2000 20:44:21 +0000 Subject: [PATCH] verify that servers started successfully, so that the individual tests don't need to --- bin/tests/system/start.sh | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/bin/tests/system/start.sh b/bin/tests/system/start.sh index e6241c75c2..077c9d1313 100644 --- a/bin/tests/system/start.sh +++ b/bin/tests/system/start.sh @@ -19,7 +19,6 @@ # Start name servers for running system tests. # - . ./conf.sh cd $1 @@ -46,3 +45,19 @@ do ) done + +# Make sure all of the servers are up. + +status=0 + +for d in ns* +do + n=`echo $d | sed 's/ns//'` + $DIG +tcp +noadd +nosea +nostat +noquest +nocomm +nocmd \ + version.bind. chaos txt @10.53.0.$n soa > dig.out + status=`expr $status + $?` + grep ";" dig.out +done +rm -f dig.out + +exit $status