Subject: | still problems with test 11-inet6.t (IPv6 enabled but no connectivity) |
While preparing a package of Net-DNS 0.57 for the pkgsrc package
collection on a NetBSD 3.0 system (perl 5.8.7, IPv6 enabled but
without IPv6 connectivity, online tests disabled) I get the following
during "make test":
======================================
ok 1 - use Net::DNS;
#
# The libraries needed for IPv6 support have been found
# Now we establish if we can bind to ::1
ok 2 # skip online tests are not enabled
Can't call method "errorstring" on an undefined value at t/11-inet6.t
line 115.
ok 3 # skip online tests are not enabled
# Looks like you planned 11 tests but only ran 3.
# Looks like your test died just after 3.
dubious
Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 4-11
Failed 8/11 tests, 27.27% okay (less 2 skipped tests: 1 okay, 9.
09%)
Failed Test Stat Wstat Total Fail Failed List of Failed
------------------------------------------------------------------------
-------
t/11-inet6.t 255 65280 11 16 145.45% 4-11
2 subtests skipped.
Failed 1/1 test scripts, 0.00% okay. 8/11 subtests failed, 27.27% okay.
*** Error code 255
======================================
With the first attached patch (patch-aa) all tests can finish but
the results of tests 6 and 7 (tcp6 _cannot_ succeed without an IPv6
connection) are still wrong because they rely on
"$res->nameservers($AAAA_address)" from tests 2-4 which were skipped
(online tests disabled). Due to this relationship, I think tests 6 and
7 should also be skipped if online tests are not enabled (see the second
patch, patch-ab).
======================================
ok 1 - use Net::DNS;
#
# The libraries needed for IPv6 support have been found
# Now we establish if we can bind to ::1
ok 2 # skip online tests are not enabled
ok 3 # skip online tests are not enabled
ok 4 # skip online tests are not enabled
ok 5 # skip No answer available to analyse (unknown error or no error)
not ok 6 - Correct errorstring when forcing v4
# Failed test (t/11-inet6.t at line 126)
# got: 'NOERROR'
# expected: 'no nameservers'
# Looks like you failed 1 test of 11.
ok 7 - Query over tcp6 succeeded
ok 8 # skip online tests are not enabled
ok 9 # skip online tests are not enabled
ok 10 # skip axfr_start did not return a socket
ok 11 # skip axfr_start did not return a socket
dubious
Test returned status 1 (wstat 256, 0x100)
DIED. FAILED test 6
======================================
With both patches applied, I get 10/11 test skipped when online tests
are disabled and the following correct results with online tests
enabled:
======================================
ok 1 - use Net::DNS;
#
# The libraries needed for IPv6 support have been found
# Now we establish if we can bind to ::1
#
#
# Testing for global IPv6 connectivity...
# preparing...
ok 2 - Preparing for v6 transport, got NS records for ripe.net
ok 3 - Preparing for v4 transport, got A records for ns-pri.ripe.net
#
# Will try to connect to ns-pri.ripe.net (193.0.0.195)
ok 4 - Preparing for v6 transport, got AAAA records for ns-pri.ripe.net
#
# Will try to connect to ns-pri.ripe.net (2001:610:240:
0:53:0:0:3)
#
# Connection failed: Send error: No route to host
#
# It seems you do not have global IPv6 connectivity'
# This is not an error in Net::DNS
# You can confirm this by trying 'ping6 2001:610:240:0:
53:0:0:3'
#
ok 5 # skip No answer available to analyse (Send error: No route to
host)
# You can safely ignore the following message:
ok 6 - Correct errorstring when forcing v4
# configuring 2001:610:240:0:53:0:0:3 193.0.0.195 as nameservers
ok 7 - Fallback to V4 succeeded
ok 8 - Preparing for v6 transport, got NS records for net-dns.org
ok 9 - Preparing for v6 transport, got AAAA records for ns.hactrn.net
#
# Trying to connect to ns.hactrn.net (2002:425c:4242:0:
210:5aff:fe86:1f54)
ok 10 # skip axfr_start did not return a socket
ok 11 # skip axfr_start did not return a socket
ok
3/11 skipped: various reasons
All tests successful, 3 subtests skipped.
======================================
Subject: | patch-ab |
Message body not shown because it is not plain text.