Setting public TestEnv defaults for net/nio tests needing hosts

Mark Wielaard mark at klomp.org
Thu Jun 4 06:19:58 PDT 2009


Hi,

On Sun, 2008-11-16 at 00:05 +0100, Mark Wielaard wrote:
> I made sure all needed services are enabled on
> icedtea.classpath.org/developer.classpath.org and set those as defaults
> in TestEnv for the net/nio tests that need to contact hosts. Using
> icedtea for remote_host and developer for far_host is somewhat
> arbitrary, but at least these hosts are public.
> 
> I also made sure the cname.sh test uses the far_host to do its tests
> instead of a hardcoded one. And I changed the SocketChannel LocalAddress
> and Shutdown tests to use the echo service. Since the echo service
> already has to be enabled for other tests and I didn't want to open up a
> telnet port.
> [...]
> All the tests using TestEnv in make check-jdk target now PASS for me.
> 
> Note that TestEnv hasn't been forward ported from jdk6 to jdk7. So I
> haven't yet pushed this patch upstream to the jdk7 net/nio lists.

The jdk6 and jdk7 environments are still somewhat dissimilar, but thanks
to Andrew Hughes the patches have been ported to make sure they also
work on jdk7 out of the box by default using just public hosts without
the need to change anything in your test environment locally. Attached
is the patch against jdk7.

I also filed (the jdk6 version) in bugzilla so it doesn't get forgotten:
https://bugs.openjdk.java.net/show_bug.cgi?id=100066

Thanks,

Mark
-------------- next part --------------
A non-text attachment was scrubbed...
Name: icedtea-testenv.patch
Type: text/x-patch
Size: 3185 bytes
Desc: not available
Url : http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20090604/b81d04af/icedtea-testenv.patch 


More information about the distro-pkg-dev mailing list