2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-09-02 15:45:25 +00:00

Check that ::1 is configured

This commit is contained in:
Mark Andrews
2011-01-10 05:08:49 +00:00
parent 21560605cc
commit fc5e97963d

View File

@@ -14,7 +14,7 @@
# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR # OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
# PERFORMANCE OF THIS SOFTWARE. # PERFORMANCE OF THIS SOFTWARE.
# $Id: tests.sh,v 1.3 2010/12/17 00:57:38 marka Exp $ # $Id: tests.sh,v 1.4 2011/01/10 05:08:49 marka Exp $
SYSTEMTESTTOP=.. SYSTEMTESTTOP=..
. $SYSTEMTESTTOP/conf.sh . $SYSTEMTESTTOP/conf.sh
@@ -153,16 +153,21 @@ grep "example org data" dig.out.ns2.test$n > /dev/null || ret=1
if [ $ret != 0 ]; then echo "I:failed"; fi if [ $ret != 0 ]; then echo "I:failed"; fi
status=`expr $status + $ret` status=`expr $status + $ret`
n=`expr $n + 1`
# Note: for a short term workaround we use ::1, assuming it's configured and # Note: for a short term workaround we use ::1, assuming it's configured and
# usable for our tests. We should eventually use the test ULA and available # usable for our tests. We should eventually use the test ULA and available
# checks introduced in change 2916. # checks introduced in change 2916.
n=`expr $n + 1` if $PERL ../testsock6.pl ::1
echo "I:checking IPv6 static-stub address ($n)" then
ret=0 echo "I:checking IPv6 static-stub address ($n)"
$DIG +tcp data.example.info. @10.53.0.2 txt -p 5300 > dig.out.ns2.test$n || ret=1 ret=0
grep "example info data" dig.out.ns2.test$n > /dev/null || ret=1 $DIG +tcp data.example.info. @10.53.0.2 txt -p 5300 > dig.out.ns2.test$n || ret=1
if [ $ret != 0 ]; then echo "I:failed"; fi grep "example info data" dig.out.ns2.test$n > /dev/null || ret=1
status=`expr $status + $ret` if [ $ret != 0 ]; then echo "I:failed"; fi
status=`expr $status + $ret`
else
echo "I:SKIPPED: checking IPv6 static-stub address ($n)"
fi
n=`expr $n + 1` n=`expr $n + 1`
echo "I:look for static-stub zone data with DNSSEC validation ($n)" echo "I:look for static-stub zone data with DNSSEC validation ($n)"