From fc5e97963d3cea68cb170e362ce370b8ca76b542 Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Mon, 10 Jan 2011 05:08:49 +0000 Subject: [PATCH] Check that ::1 is configured --- bin/tests/system/staticstub/tests.sh | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/bin/tests/system/staticstub/tests.sh b/bin/tests/system/staticstub/tests.sh index 016e2572d06..c40e9621909 100755 --- a/bin/tests/system/staticstub/tests.sh +++ b/bin/tests/system/staticstub/tests.sh @@ -14,7 +14,7 @@ # OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR # 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/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 status=`expr $status + $ret` +n=`expr $n + 1` # 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 # checks introduced in change 2916. -n=`expr $n + 1` -echo "I:checking IPv6 static-stub address ($n)" -ret=0 -$DIG +tcp data.example.info. @10.53.0.2 txt -p 5300 > dig.out.ns2.test$n || ret=1 -grep "example info data" dig.out.ns2.test$n > /dev/null || ret=1 -if [ $ret != 0 ]; then echo "I:failed"; fi -status=`expr $status + $ret` +if $PERL ../testsock6.pl ::1 +then + echo "I:checking IPv6 static-stub address ($n)" + ret=0 + $DIG +tcp data.example.info. @10.53.0.2 txt -p 5300 > dig.out.ns2.test$n || ret=1 + grep "example info data" dig.out.ns2.test$n > /dev/null || ret=1 + 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` echo "I:look for static-stub zone data with DNSSEC validation ($n)" -- 2.47.3