Return-Path: Delivered-To: apmail-incubator-harmony-commits-archive@www.apache.org Received: (qmail 94430 invoked from network); 15 Sep 2006 02:15:45 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 15 Sep 2006 02:15:45 -0000 Received: (qmail 15644 invoked by uid 500); 15 Sep 2006 02:15:45 -0000 Delivered-To: apmail-incubator-harmony-commits-archive@incubator.apache.org Received: (qmail 15543 invoked by uid 500); 15 Sep 2006 02:15:45 -0000 Mailing-List: contact harmony-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: harmony-dev@incubator.apache.org Delivered-To: mailing list harmony-commits@incubator.apache.org Received: (qmail 15532 invoked by uid 99); 15 Sep 2006 02:15:45 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Sep 2006 19:15:45 -0700 X-ASF-Spam-Status: No, hits=-9.4 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [140.211.166.113] (HELO eris.apache.org) (140.211.166.113) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Sep 2006 19:15:39 -0700 Received: by eris.apache.org (Postfix, from userid 65534) id 5F7231A9823; Thu, 14 Sep 2006 19:15:13 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r446462 [4/4] - in /incubator/harmony/enhanced/classlib/trunk/support: .settings/ META-INF/ src/test/java/tests/resources/ src/test/java/tests/resources/manifest/ src/test/java/tests/resources/subfolder/tests/resources/ src/test/java/tests/... Date: Fri, 15 Sep 2006 02:15:12 -0000 To: harmony-commits@incubator.apache.org From: ndbeyer@apache.org X-Mailer: svnmailer-1.1.0 Message-Id: <20060915021513.5F7231A9823@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Propchange: incubator/harmony/enhanced/classlib/trunk/support/src/test/resources/config/jcltest-excludes.xml ------------------------------------------------------------------------------ svn:eol-style = native Modified: incubator/harmony/enhanced/classlib/trunk/support/src/test/resources/config/localhosttest.ini URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/support/src/test/resources/config/localhosttest.ini?view=diff&rev=446462&r1=446461&r2=446462 ============================================================================== --- incubator/harmony/enhanced/classlib/trunk/support/src/test/resources/config/localhosttest.ini (original) +++ incubator/harmony/enhanced/classlib/trunk/support/src/test/resources/config/localhosttest.ini Thu Sep 14 19:15:10 2006 @@ -1,30 +1,30 @@ -DomainAddress= -WebName=localhost. -TestResourcesDir=/testres231 -HomeAddressResponse=HTTP/1.1 200 OK -HomeAddressSoftware=Apache/2.0.55 (Win32) -ProxyServerTestHost=localhost -SocksServerTestHost=localhost -SocksServerTestPort=2080 -UnresolvedIP=192.168.99.99 -InetTestAddress=localhost -InetTestIP=127.0.0.1 -NonLocalAddressBytes=1.0.0.0 -InetTestAddress2=localhost -InetTestIP2=127.0.0.1 -InetTestHashcode=2130706433 -SpecialInetTestAddress=localhost -SpecialInetTestAddressNumber=1 -FTPTestAddress=jcltest:jclpass@localhost -URLConnectionLastModifiedString=Sat, 07 Jan 2006 13:50:52 GMT -URLConnectionLastModified=1136641852000 -URLConnectionDate=929092440000 -InetTestIP6=fe80::20d:60ff:fe24:7410 -ResolvedNotExistingHost=9.26.194.72 -InetAlias1=localhost -InetAlias2=localhost -IPv6GlobalAddressJcl4= - - - - +DomainAddress= +WebName=localhost. +TestResourcesDir=/testres231 +HomeAddressResponse=HTTP/1.1 200 OK +HomeAddressSoftware=Apache/2.0.55 (Win32) +ProxyServerTestHost=localhost +SocksServerTestHost=localhost +SocksServerTestPort=2080 +UnresolvedIP=192.168.99.99 +InetTestAddress=localhost +InetTestIP=127.0.0.1 +NonLocalAddressBytes=1.0.0.0 +InetTestAddress2=localhost +InetTestIP2=127.0.0.1 +InetTestHashcode=2130706433 +SpecialInetTestAddress=localhost +SpecialInetTestAddressNumber=1 +FTPTestAddress=jcltest:jclpass@localhost +URLConnectionLastModifiedString=Sat, 07 Jan 2006 13:50:52 GMT +URLConnectionLastModified=1136641852000 +URLConnectionDate=929092440000 +InetTestIP6=fe80::20d:60ff:fe24:7410 +ResolvedNotExistingHost=9.26.194.72 +InetAlias1=localhost +InetAlias2=localhost +IPv6GlobalAddressJcl4= + + + + Propchange: incubator/harmony/enhanced/classlib/trunk/support/src/test/resources/config/localhosttest.ini ------------------------------------------------------------------------------ svn:eol-style = native Modified: incubator/harmony/enhanced/classlib/trunk/support/src/test/resources/config/testing.policy URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/support/src/test/resources/config/testing.policy?view=diff&rev=446462&r1=446461&r2=446462 ============================================================================== --- incubator/harmony/enhanced/classlib/trunk/support/src/test/resources/config/testing.policy (original) +++ incubator/harmony/enhanced/classlib/trunk/support/src/test/resources/config/testing.policy Thu Sep 14 19:15:10 2006 @@ -1,9 +1,9 @@ -grant { - // so we can remove the security manager - permission java.lang.RuntimePermission "setSecurityManager"; - - permission java.io.SerializablePermission "enableSubclassImplementation"; - - permission java.util.PropertyPermission "user.dir", "read"; - permission java.io.FilePermission "${user.dir}${/}bin${/}tests${/}resources${/}-", "read"; +grant { + // so we can remove the security manager + permission java.lang.RuntimePermission "setSecurityManager"; + + permission java.io.SerializablePermission "enableSubclassImplementation"; + + permission java.util.PropertyPermission "user.dir", "read"; + permission java.io.FilePermission "${user.dir}${/}bin${/}tests${/}resources${/}-", "read"; }; Propchange: incubator/harmony/enhanced/classlib/trunk/support/src/test/resources/config/testing.policy ------------------------------------------------------------------------------ svn:eol-style = native Propchange: incubator/harmony/enhanced/classlib/trunk/support/src/test/resources/hyts_Foo.c ------------------------------------------------------------------------------ svn:eol-style = native Propchange: incubator/harmony/enhanced/classlib/trunk/support/src/test/resources/net.resources/FTP/jcltest/nettest.txt ------------------------------------------------------------------------------ svn:eol-style = native Propchange: incubator/harmony/enhanced/classlib/trunk/support/src/test/resources/net.resources/HTTP/cgi-bin/test.pl ------------------------------------------------------------------------------ svn:eol-style = native Propchange: incubator/harmony/enhanced/classlib/trunk/support/src/test/resources/net.resources/HTTP/html/testres231/RESOURCE.TXT ------------------------------------------------------------------------------ svn:eol-style = native Modified: incubator/harmony/enhanced/classlib/trunk/support/src/test/resources/net.resources/HTTP/html/testres231/URLConnectionTest/Harmony.html URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/support/src/test/resources/net.resources/HTTP/html/testres231/URLConnectionTest/Harmony.html?view=diff&rev=446462&r1=446461&r2=446462 ============================================================================== --- incubator/harmony/enhanced/classlib/trunk/support/src/test/resources/net.resources/HTTP/html/testres231/URLConnectionTest/Harmony.html (original) +++ incubator/harmony/enhanced/classlib/trunk/support/src/test/resources/net.resources/HTTP/html/testres231/URLConnectionTest/Harmony.html Thu Sep 14 19:15:10 2006 @@ -1,27 +1,27 @@ - - - - - - - - - - - - - -



-

-

Happiness -is when what you think, what you say, and what you do are in -harmony.”

-

Mohandas -Gandhi -

- + + + + + + + + + + + + + +



+

+

Happiness +is when what you think, what you say, and what you do are in +harmony.”

+

Mohandas +Gandhi +

+ Propchange: incubator/harmony/enhanced/classlib/trunk/support/src/test/resources/net.resources/HTTP/html/testres231/URLConnectionTest/Harmony.html ------------------------------------------------------------------------------ svn:eol-style = native Propchange: incubator/harmony/enhanced/classlib/trunk/support/src/test/resources/net.resources/HTTP/html/testres231/subdir1/RESOURCE.TXT ------------------------------------------------------------------------------ svn:eol-style = native Modified: incubator/harmony/enhanced/classlib/trunk/support/src/test/resources/net.resources/README.txt URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/support/src/test/resources/net.resources/README.txt?view=diff&rev=446462&r1=446461&r2=446462 ============================================================================== --- incubator/harmony/enhanced/classlib/trunk/support/src/test/resources/net.resources/README.txt (original) +++ incubator/harmony/enhanced/classlib/trunk/support/src/test/resources/net.resources/README.txt Thu Sep 14 19:15:10 2006 @@ -1,188 +1,188 @@ -README -====== - - - -Contents --------- -This directory contains resources that can be used to carry out unit testing of -the java.net types. The resources are separated according to the type of -server that will host them. - -FTP ---- -The FTP folder contains a single text file (nettest.txt) which should be placed -in the root or home directory of an FTP account with id "jcltest" with password -"jclpass". Please do not modify nettest.txt as the tests have been written to -check on the precise contents of this file. - - -HTTP ----- -The HTTP folder contains files to be deployed on an HTTP server. - -Directory cgi-bin contains a single Perl script called test.pl which should be -placed in the normal bin directory for your HTTP server (e.g. "cgi-bin" for the -Apache HTTP server). The intent is that this script can be accessed with the URL -"http:///cgi-bin/test.pl" . - -Directory html/testres231 contains a number of text and binary resources. This -folder and all of its subfolders should be copied to the root directory of your -web server from which static documents are served (e.g. "htdocs" for the Apache -HTTP server)... - - -/testres231 - | RESOURCE.TXT - | - +---JUC - | lf.jar - | - +---subdir1 - | RESOURCE.TXT - | - +---UCL - | UCL.jar - | - \---URLConnectionTest - Harmony.html - - - -The intent is that these resources can be accessed with URLs beginning -"http:///testres231/" . - -As with the FTP resource, please do not modify these files in any way as the -unit test code has been written to expect specific information about these -files such as content and date of last modification. - - -SERVER CONFIGURATION --------------------- -Before running the unit tests for the java.net types the following steps should -be taken. - -1. Install the FTP and HTTP documents to their respective server locations as -described above. -2. Enable proxying capability on the HTTP server. -3. Start the HTTP and FTP servers. -4. Start up a SOCKS server. - - - -RUNNING THE TESTS ------------------ -The success of the java.net tests rely on a number of text values which can be -supplied in a properties file. These properties include the hostname of the -HTTP server where the testres231 files are hosted, the network location of the -FTP and SOCKS servers and so on. Isolating these values in a properties file -enables the tests to be run in any network environment without recourse to -updating values in the test case source code. - -The location of the properties file can be specified to the running tests -through setting the property "test.ini.file". An example of this is available -in the "run-tests" target of the /Harmony/make/build-java.xml file -contained in this zip file. There the "test.ini.file" property holds the -path to the file -/Harmony/Harmony_Tests/src/test/resources/config/localhost.ini -that contains suitable property values if the HTTP, FTP and SOCKS servers were -all running on the local machine of the tests user. - -The key properties required by the java.net tests are as follows ... - - -* DomainAddress : The domain name of the host where the HTTP server is running. - -* WebName : The unqualified name of the host where the HTTP server is running. - -* TestResourcesDir : the name of the folder on the HTTP server beneath the - document root where the where the web resources have been - deployed. - -* HomeAddressResponse : the expected response returned from a successful get - from the HTTP server. - -* HomeAddressSoftware : the expected information about the HTTP server's - software. - -* ProxyServerTestHost : the fully qualified location of the HTTP proxy host - used in the tests. - -* SocksServerTestHost : the fully qualified location of the SOCKS server used - in the tests. - -* SocksServerTestPort : the test SOCKS server's port number - -* UnresolvedIP : an IP address that does not resolve to a host name - -* InetTestAddress : the string name of a network host with IP address given - in the corresponding "InetTestIP" property. - -* InetTestIP : the IP address of a network host whose string name is supplied - in the corresponding "InetTestAddress" property. - -* NonLocalAddressBytes : the bytes representing the address of any machine which - cannot be bound to during the tests. Used in the socket - tests to verify we get the expected error when trying - to bind to an address that cannot be reached. - -* InetTestAddress2 : the string name of a network host with IP address given - in the corresponding "InetTestIP" property. - -* InetTestIP2 : the IP address of a network host whose string name is supplied - in the corresponding "InetTestAddress" property. - -* InetTestHashcode : the expected hashcode value of the "InetTestAddress". - -* SpecialInetTestAddress : An address that resolves to more than one IP address. - The expected number of IP addresses that this address - resolves to should be set in the - "SpecialInetTestAddressNumber" property. Used to test - the java.net.InetAddress.getAllByName() method. - -* SpecialInetTestAddressNumber : The number of IP addresses that resolve to the - host named in the property - "SpecialInetTestAddress". Used to test the - java.net.InetAddress.getAllByName() method. - -* FTPTestAddress : a string of the form "jcltest:jclpass@" that - points to the network location of the FTP resources. - -* URLConnectionLastModifiedString : string which gives the precise date and time - that the HTTP server resources were last - modified. If you make any changes to the - web resources this value will need to - change. - -* URLConnectionLastModified : the corresponding numeric equivalent of the - "URLConnectionLastModifiedString" string value. - Any changes to the web resources will affect this - value. - -* URLConnectionDate : the expected date when the file - "http:///testres231/RESOURCE.TXT" was last - modified. Making any changes to the RESOURCE.TXT file will - mean this property value will require updating. - -* InetTestIP6 : an IPv6 address to help test out serialization of the type - java.net.Inet6Address . - -* ResolvedNotExistingHost : an IP address that resolves to a host that is not - present on the local network. This allows us to - check the timeouts for socket connections. - -* InetAlias1 : this property and "InetAlias2" should be different host names - that resolve to the same IP address. - -* InetAlias2 : this property and "InetAlias1" should be different host names - that resolve to the same IP address. - -* IPv6GlobalAddressJcl4 : the IPv6 address for a host on the network. - - - -If any of these properties are not set the *hard coded* defaults in the class -tests.support.Support_Configuration will be used (see -/Harmony/Harmony_Tests/src/test/java/tests/support/Support_Configuration.java -in this zip file). - +README +====== + + + +Contents +-------- +This directory contains resources that can be used to carry out unit testing of +the java.net types. The resources are separated according to the type of +server that will host them. + +FTP +--- +The FTP folder contains a single text file (nettest.txt) which should be placed +in the root or home directory of an FTP account with id "jcltest" with password +"jclpass". Please do not modify nettest.txt as the tests have been written to +check on the precise contents of this file. + + +HTTP +---- +The HTTP folder contains files to be deployed on an HTTP server. + +Directory cgi-bin contains a single Perl script called test.pl which should be +placed in the normal bin directory for your HTTP server (e.g. "cgi-bin" for the +Apache HTTP server). The intent is that this script can be accessed with the URL +"http:///cgi-bin/test.pl" . + +Directory html/testres231 contains a number of text and binary resources. This +folder and all of its subfolders should be copied to the root directory of your +web server from which static documents are served (e.g. "htdocs" for the Apache +HTTP server)... + + +/testres231 + | RESOURCE.TXT + | + +---JUC + | lf.jar + | + +---subdir1 + | RESOURCE.TXT + | + +---UCL + | UCL.jar + | + \---URLConnectionTest + Harmony.html + + + +The intent is that these resources can be accessed with URLs beginning +"http:///testres231/" . + +As with the FTP resource, please do not modify these files in any way as the +unit test code has been written to expect specific information about these +files such as content and date of last modification. + + +SERVER CONFIGURATION +-------------------- +Before running the unit tests for the java.net types the following steps should +be taken. + +1. Install the FTP and HTTP documents to their respective server locations as +described above. +2. Enable proxying capability on the HTTP server. +3. Start the HTTP and FTP servers. +4. Start up a SOCKS server. + + + +RUNNING THE TESTS +----------------- +The success of the java.net tests rely on a number of text values which can be +supplied in a properties file. These properties include the hostname of the +HTTP server where the testres231 files are hosted, the network location of the +FTP and SOCKS servers and so on. Isolating these values in a properties file +enables the tests to be run in any network environment without recourse to +updating values in the test case source code. + +The location of the properties file can be specified to the running tests +through setting the property "test.ini.file". An example of this is available +in the "run-tests" target of the /Harmony/make/build-java.xml file +contained in this zip file. There the "test.ini.file" property holds the +path to the file +/Harmony/Harmony_Tests/src/test/resources/config/localhost.ini +that contains suitable property values if the HTTP, FTP and SOCKS servers were +all running on the local machine of the tests user. + +The key properties required by the java.net tests are as follows ... + + +* DomainAddress : The domain name of the host where the HTTP server is running. + +* WebName : The unqualified name of the host where the HTTP server is running. + +* TestResourcesDir : the name of the folder on the HTTP server beneath the + document root where the where the web resources have been + deployed. + +* HomeAddressResponse : the expected response returned from a successful get + from the HTTP server. + +* HomeAddressSoftware : the expected information about the HTTP server's + software. + +* ProxyServerTestHost : the fully qualified location of the HTTP proxy host + used in the tests. + +* SocksServerTestHost : the fully qualified location of the SOCKS server used + in the tests. + +* SocksServerTestPort : the test SOCKS server's port number + +* UnresolvedIP : an IP address that does not resolve to a host name + +* InetTestAddress : the string name of a network host with IP address given + in the corresponding "InetTestIP" property. + +* InetTestIP : the IP address of a network host whose string name is supplied + in the corresponding "InetTestAddress" property. + +* NonLocalAddressBytes : the bytes representing the address of any machine which + cannot be bound to during the tests. Used in the socket + tests to verify we get the expected error when trying + to bind to an address that cannot be reached. + +* InetTestAddress2 : the string name of a network host with IP address given + in the corresponding "InetTestIP" property. + +* InetTestIP2 : the IP address of a network host whose string name is supplied + in the corresponding "InetTestAddress" property. + +* InetTestHashcode : the expected hashcode value of the "InetTestAddress". + +* SpecialInetTestAddress : An address that resolves to more than one IP address. + The expected number of IP addresses that this address + resolves to should be set in the + "SpecialInetTestAddressNumber" property. Used to test + the java.net.InetAddress.getAllByName() method. + +* SpecialInetTestAddressNumber : The number of IP addresses that resolve to the + host named in the property + "SpecialInetTestAddress". Used to test the + java.net.InetAddress.getAllByName() method. + +* FTPTestAddress : a string of the form "jcltest:jclpass@" that + points to the network location of the FTP resources. + +* URLConnectionLastModifiedString : string which gives the precise date and time + that the HTTP server resources were last + modified. If you make any changes to the + web resources this value will need to + change. + +* URLConnectionLastModified : the corresponding numeric equivalent of the + "URLConnectionLastModifiedString" string value. + Any changes to the web resources will affect this + value. + +* URLConnectionDate : the expected date when the file + "http:///testres231/RESOURCE.TXT" was last + modified. Making any changes to the RESOURCE.TXT file will + mean this property value will require updating. + +* InetTestIP6 : an IPv6 address to help test out serialization of the type + java.net.Inet6Address . + +* ResolvedNotExistingHost : an IP address that resolves to a host that is not + present on the local network. This allows us to + check the timeouts for socket connections. + +* InetAlias1 : this property and "InetAlias2" should be different host names + that resolve to the same IP address. + +* InetAlias2 : this property and "InetAlias1" should be different host names + that resolve to the same IP address. + +* IPv6GlobalAddressJcl4 : the IPv6 address for a host on the network. + + + +If any of these properties are not set the *hard coded* defaults in the class +tests.support.Support_Configuration will be used (see +/Harmony/Harmony_Tests/src/test/java/tests/support/Support_Configuration.java +in this zip file). + Propchange: incubator/harmony/enhanced/classlib/trunk/support/src/test/resources/net.resources/README.txt ------------------------------------------------------------------------------ svn:eol-style = native