From: Wouter Wijngaards Date: Tue, 24 Jun 2008 14:35:53 +0000 (+0000) Subject: Fixup ipv6 availability test. X-Git-Tag: release-1.0.1~21 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=56f3cd33ecd897120793707ee50df6fc5079b39e;p=thirdparty%2Funbound.git Fixup ipv6 availability test. git-svn-id: file:///svn/unbound/trunk@1131 be551aaa-1e26-0410-a405-d3ace91eadb9 --- diff --git a/testcode/do-tests.sh b/testcode/do-tests.sh index a52e0c7ce..f535fa15f 100755 --- a/testcode/do-tests.sh +++ b/testcode/do-tests.sh @@ -17,13 +17,12 @@ else JOBCONTROL=yes fi -# test for ipv6, uses dig 9.4.2 peculiarity (test @ before -v). -if dig @::1 -v >/dev/null 2>&1; then - HAVE_IPV6=yes -else +# test for ipv6, uses streamptcp peculiarity. +if ./streamtcp -f ::1 2>&1 | grep "not supported" >/dev/null 2>&1; then HAVE_IPV6=no +else + HAVE_IPV6=yes fi -HAVE_IPV6=yes cd testdata; sh ../testcode/mini_tpkg.sh clean