]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
I:waiting for nameserver to load, ok'd by Evan
authorMark Andrews <marka@isc.org>
Fri, 3 Feb 2012 04:45:54 +0000 (04:45 +0000)
committerMark Andrews <marka@isc.org>
Fri, 3 Feb 2012 04:45:54 +0000 (04:45 +0000)
bin/tests/system/lwresd/clean.sh
bin/tests/system/lwresd/tests.sh

index 107a0209dd80d70dc8e3df2808095f56a7d9925b..1b5bd5302ff2720394e8ca746c3c2adf62eab607 100644 (file)
 # OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
 # PERFORMANCE OF THIS SOFTWARE.
 
-# $Id: clean.sh,v 1.1 2008/07/17 01:14:16 marka Exp $
+# $Id: clean.sh,v 1.1.962.1 2012/02/03 04:45:53 marka Exp $
 
 #
 # Clean up after lwresd tests.
 #
 rm -f */named.memstats
+rm -f dig.out
index cb5cedf91b3affdd354d243ade98913253c48012..ce2b87a73ecbdd14ef0e343cecaa2b10915d6add 100644 (file)
 # OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
 # PERFORMANCE OF THIS SOFTWARE.
 
-# $Id: tests.sh,v 1.20 2011/10/17 23:46:33 tbox Exp $
+# $Id: tests.sh,v 1.20.110.1 2012/02/03 04:45:54 marka Exp $
 
 SYSTEMTESTTOP=..
 . $SYSTEMTESTTOP/conf.sh
 
 status=0
+echo "I:waiting for nameserver to load"
+for i in 0 1 2 3 4 5 6 7 8 9
+do
+       ret=0
+       for zone in . example1 e.example1 example2 10.10.10.in-addr.arpa \
+           ip6.int ip6.arpa
+       do
+               $DIG +tcp -p 5300 @10.53.0.1 soa $zone > dig.out
+               grep "status: NOERROR" dig.out > /dev/null || ret=1
+               grep "ANSWER: 1," dig.out > /dev/null || ret=1
+       done
+       test $ret = 0 && break
+       sleep 1
+done
+if [ $ret != 0 ]; then echo "I:failed"; fi
+status=`expr $status + $ret`
 
 echo "I:using resolv.conf"
 ret=0