~ubuntu-branches/ubuntu/natty/bind9/natty-updates

« back to all changes in this revision

Viewing changes to bin/tests/system/resolver/tests.sh

  • Committer: Bazaar Package Importer
  • Author(s): LaMont Jones, Internet Software Consortium, Inc, LaMont Jones
  • Date: 2010-06-21 09:53:30 UTC
  • mfrom: (1.6.7 upstream)
  • Revision ID: james.westby@ubuntu.com-20100621095330-k6874kbj59lfo3xm
Tags: 1:9.7.1.dfsg-1
[Internet Software Consortium, Inc]

* 9.7.1

[LaMont Jones]

* Add freebsd support.  Closes: #578447
* soname changes
* freshen root cache.  LP: #596363

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/bin/sh
2
2
#
3
 
# Copyright (C) 2004, 2007, 2009  Internet Systems Consortium, Inc. ("ISC")
 
3
# Copyright (C) 2004, 2007, 2009, 2010  Internet Systems Consortium, Inc. ("ISC")
4
4
# Copyright (C) 2000, 2001  Internet Software Consortium.
5
5
#
6
6
# Permission to use, copy, modify, and/or distribute this software for any
15
15
# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
16
16
# PERFORMANCE OF THIS SOFTWARE.
17
17
 
18
 
# $Id: tests.sh,v 1.11 2009/05/29 23:47:49 tbox Exp $
 
18
# $Id: tests.sh,v 1.11.142.2 2010/05/19 09:32:36 tbox Exp $
19
19
 
20
20
SYSTEMTESTTOP=..
21
21
. $SYSTEMTESTTOP/conf.sh
22
22
 
23
23
status=0
24
24
 
 
25
echo "I:checking non-cachable NXDOMAIN response handling"
 
26
ret=0
 
27
$DIG +tcp nxdomain.example.net @10.53.0.1 a -p 5300 > dig.out || ret=1
 
28
grep "status: NXDOMAIN" dig.out > /dev/null || ret=1
 
29
if [ $ret != 0 ]; then echo "I:failed"; fi
 
30
status=`expr $status + $ret`
 
31
 
 
32
echo "I:checking non-cachable NODATA response handling"
 
33
ret=0
 
34
$DIG +tcp nodata.example.net @10.53.0.1 a -p 5300 > dig.out || ret=1
 
35
grep "status: NOERROR" dig.out > /dev/null || ret=1
 
36
 
 
37
if [ $ret != 0 ]; then echo "I:failed"; fi
 
38
status=`expr $status + $ret`
25
39
echo "I:checking handling of bogus referrals"
26
40
# If the server has the "INSIST(!external)" bug, this query will kill it.
27
41
$DIG +tcp www.example.com. a @10.53.0.1 -p 5300 >/dev/null || status=1
105
119
if [ $ret != 0 ]; then echo "I:failed"; fi
106
120
status=`expr $status + $ret`
107
121
 
 
122
 
108
123
echo "I:exit status: $status"
109
124
exit $status