Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4377496

Reg test suite should not hardcode hostnames

XMLWordPrintable

    • x86
    • windows_nt, windows_2000

      michelle.devereux@Ireland 2000-10-09
      I have recieved the following request from IBM re. the behaviour of the Regression Tests Suite:

      Nine of the testcases in the reg13 RegTest testsuite from Sun have one or more hostnames hardcoded causing them to fail. These are:
           test/java/net/URL/OpenStream.java
           test/java/net/URL/GetContent.java
           test/java/net/Socket/TestConnect.java
           test/java/net/URLConnection/contentHandler/UserContentHandler.java
           test/java/util/zip/ZipFile/DeleteTempJar.java
           test/sun/net/www/protocol/http/Modified.java
           test/sun/net/www/http/HttpClient/IsKeepingAlive.java
           test/sun/net/www/http/HttpClient/OpenServer.java
           test/sun/net/www/http/HttpClient/ImplicitFileName.java

      We could update the testcases to use locally available hosts. However, I believe it would be generally beneficial if the hostname(s) these testcases use could be set on the machine where the testcase runs.

      This means the hostname should be communicated to the testcase.

      I would propose these hostnames are set up in three environment variables and the testcases be updated to read them at source (Sun). I would propose the following environment variables names:

           TEST_HOST_1, TEST_HOST_2, TEST_HOST_3

      ==============================================================================
      al.smith@eng 2000-10-20

      Regression test java/util/zip/ZipFile/DeleteTempJar.java Failed

      #Test Results (version 2)
      #Wed Oct 18 22:21:02 PDT 2000
      #checksum:74c4843beeee439c
      #-----testdescription-----
      $file=/net/sqesvr/export/st1/regression/ladybird/jdk1.3.1Tests/current-tests/java/util/zip/ZipFile/DeleteTempJar.java
      $root=/net/sqesvr/export/st1/regression/ladybird/jdk1.3.1Tests/current-tests
      keywords=bug4166799 shell
      run=USER_SPECIFIED build DeleteTempJar\nUSER_SPECIFIED shell deletetempjar.sh\n
      source=DeleteTempJar.java
      title=Make sure URL-downloaded jar files (jar_cache files) will be deleted when VM exits.

      #-----environment-----

      #-----testresult-----
      description=file:///net/sqesvr/export/st1/regression/ladybird/jdk1.3.1Tests/current-tests/java/util/zip/ZipFile/DeleteTempJar.java
      end=Wed Oct 18 22:21:02 PDT 2000
      environment=regtest
      execStatus=Failed. Execution failed: Program `sh' interrupted! (timed out?)
      javatestOS=Solaris 2.x (sparc)
      javatestVersion=JT_2.1.3i
      script=com.sun.javatest.regtest.RegressionScript
      sections=script_messages build compile shell
      start=Wed Oct 18 22:18:56 PDT 2000
      status=Failed. Execution failed: Program `sh' interrupted! (timed out?)
      test=java/util/zip/ZipFile/DeleteTempJar.java
      work=/export0/results/regression/tiggr5.7-harness115k-testwith131-10-18-20.19-ALL/java/util/zip/ZipFile

      #section:script_messages
      ----------messages:(2/127)----------
      JDK under test: java full version "1.3.1ea-b04" (/net/sqesvr/export/st1/jdk131/solsparc)
      Timeout signalled after 120.0 seconds

      #section:build
      ----------messages:(3/114)----------
      command: build DeleteTempJar
      reason: User specified action: run build DeleteTempJar
      elapsed time (seconds): 5.7
      result: Passed. Compilation successful

      #section:compile
      ----------messages:(3/210)----------
      command: compile /net/sqesvr/export/st1/regression/ladybird/jdk1.3.1Tests/current-tests/java/util/zip/ZipFile/DeleteTempJar.java
      reason: .class file out of date or does not exist
      elapsed time (seconds): 5.697
      ----------System.out:(0/0)----------
      ----------System.err:(0/0)----------
      result: Passed. Compilation successful

      #section:shell
      ----------messages:(3/124)----------
      command: shell deletetempjar.sh
      reason: User specified action: run shell deletetempjar.sh
      elapsed time (seconds): 120.112
      ----------System.out:(0/0)----------
      ----------System.err:(0/0)----------
      result: Failed. Execution failed: Program `sh' interrupted! (timed out?)


      test result: Failed. Execution failed: Program `sh' interrupted! (timed out?)

      ///////////////////////////////////
      al.smith@eng 2001-05-09

      Regression test java/net/URLConnection/contentHandler/UserContentHandler.java fails with Merlin build 63 on Linux 6.2, host seahund. This test intermittently passes and fails. I think this is waived for Kestrel, not Merlin.
      For test hardware config's, see http://sqesvr.eng/st3/jdk1.4/docs/Merlin-hw.html

      #Test Results (version 2)
      #Thu May 03 11:16:36 GMT+00:00 2001
      #checksum:537b3c59f382aea
      #-----testdescription-----
      $file=/.automount/sqesvr/root/export/st1/regression/merlin/jdk1.4Tests/tests/b63/java/net/URLConnection/contentHandler/UserContentHandler.java
      $root=/.automount/sqesvr/root/export/st1/regression/merlin/jdk1.4Tests/tests/b63
      keywords=bug4191147
      run=USER_SPECIFIED build UserContentHandler\nUSER_SPECIFIED main UserContentHandler\n
      source=UserContentHandler.java
      title=1.2beta4 does not load user defined content handlers

      #-----environment-----

      #-----testresult-----
      description=file:///.automount/sqesvr/root/export/st1/regression/merlin/jdk1.4Tests/tests/b63/java/net/URLConnection/contentHandler/UserContentHandler.java
      end=Thu May 03 11:16:36 GMT+00:00 2001
      environment=regtest
      execStatus=Failed. Execution failed: Program `/net/sqesvr/export/st1/jdk14-beta/b63/linux-i386/bin/java' interrupted! (timed out?)
      javatestOS=Linux 2.2.14-6.1.1 (i386)
      javatestVersion=JT_2.1.3i
      script=com.sun.javatest.regtest.RegressionScript
      sections=script_messages build compile build main
      start=Thu May 03 11:14:33 GMT+00:00 2001
      status=Failed. Execution failed: Program `/net/sqesvr/export/st1/jdk14-beta/b63/linux-i386/bin/java' interrupted! (timed out?)
      test=java/net/URLConnection/contentHandler/UserContentHandler.java
      work=/export0/results/regression/merlin/b63/seahund.2.2.14-6.1.1-jth13-jdk14b63-05.03-09.14-ALL/java/net/URLConnection/contentHandler

      #section:script_messages
      ----------messages:(2/140)----------
      JDK under test: java full version "1.4.0-beta-b63" (/net/sqesvr/export/st1/jdk14-beta/b63/linux-i386)
      Timeout signalled after 120.0 seconds

      #section:build
      ----------messages:(3/126)----------
      command: build UserContentHandler
      reason: User specified action: run build UserContentHandler
      elapsed time (seconds): 2.904
      result: Passed. Compilation successful

      #section:compile
      ----------messages:(3/235)----------
      command: compile /.automount/sqesvr/root/export/st1/regression/merlin/jdk1.4Tests/tests/b63/java/net/URLConnection/contentHandler/UserContentHandler.java
      reason: .class file out of date or does not exist
      elapsed time (seconds): 2.881
      ----------System.out:(0/0)----------
      ----------System.err:(0/0)----------
      result: Passed. Compilation successful

      #section:build
      ----------messages:(3/105)----------
      command: build UserContentHandler
      reason: Named class compiled on demand
      elapsed time (seconds): 0.0010
      result: Passed. No need to compile: UserContentHandler.java

      #section:main
      ----------messages:(3/125)----------
      command: main UserContentHandler
      reason: User specified action: run main UserContentHandler
      elapsed time (seconds): 120.003
      ----------System.out:(0/0)----------
      ----------System.err:(0/0)----------
      result: Failed. Execution failed: Program `/net/sqesvr/export/st1/jdk14-beta/b63/linux-i386/bin/java' interrupted! (timed out?)


      test result: Failed. Execution failed: Program `/net/sqesvr/export/st1/jdk14-beta/b63/linux-i386/bin/java' interrupted! (timed out?)

      ////////////////////////////

      ###@###.### 2001-10-18

      Regression test java/util/zip/ZipFile/DeleteTempJar.java is failing again with Merlin build 83 on windows_2000, host cwbybkr.

       For test hardware config's, see http://sqesvr.eng/st3/jdk1.4/docs/Merlin-hw.html
      #Test Results (version 2)
      #Sun Oct 14 00:54:57 PDT 2001
      #checksum:6aa4592d16cb9e67
      #-----testdescription-----
      $file=X:\\st1\\regression\\merlin\\jdk1.4Tests\\tests\\b83\\java\\util\\zip\\ZipFile\\DeleteTempJar.java
      $root=X:\\st1\\regression\\merlin\\jdk1.4Tests\\tests\\b83
      keywords=bug4166799 shell
      run=USER_SPECIFIED build DeleteTempJar\r\nUSER_SPECIFIED shell deletetempjar.sh\r\n
      source=DeleteTempJar.java
      title=Make sure URL-downloaded jar files (jar_cache files) will be deleted when VM exits.

      #-----environment-----

      #-----testresult-----
      description=file:///X:/st1/regression/merlin/jdk1.4Tests/tests/b83/java/util/zip/ZipFile/DeleteTempJar.java
      end=Sun Oct 14 00:54:57 PDT 2001
      environment=regtest
      execStatus=Failed. Execution failed: exit code 1
      javatestOS=Windows 2000 5.0 (x86)
      javatestVersion=2.1.5
      script=com.sun.javatest.regtest.RegressionScript
      sections=script_messages build compile shell
      start=Sun Oct 14 00:54:51 PDT 2001
      status=Failed. Execution failed: exit code 1
      test=java/util/zip/ZipFile/DeleteTempJar.java
      work=C:\\Results\\Regression\\merlin\\b83\\AUSTRALIS-Windows_NT-jth13-jdk14b83.10-13.22-31-ALL\\java\\util\\zip\\ZipFile

      #section:script_messages
      ----------messages:(4/202)----------
      JDK under test: (C:/Java/jdk14b83)
      java version "1.4.0-beta3"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-beta3-b83)
      Java HotSpot(TM) Client VM (build 1.4.0-beta3-b83, mixed mode)

      #section:build
      ----------messages:(3/119)----------
      command: build DeleteTempJar
      reason: User specified action: run build DeleteTempJar
      elapsed time (seconds): 1.984
      result: Passed. Compilation successful

      #section:compile
      ----------messages:(3/200)*----------
      command: compile X:\\st1\\regression\\merlin\\jdk1.4Tests\\tests\\b83\\java\\util\\zip\\ZipFile\\DeleteTempJar.java
      reason: .class file out of date or does not exist
      elapsed time (seconds): 1.969
      ----------System.out:(0/0)----------
      ----------System.err:(0/0)----------
      result: Passed. Compilation successful

      #section:shell
      ----------messages:(3/125)----------
      command: shell deletetempjar.sh
      reason: User specified action: run shell deletetempjar.sh
      elapsed time (seconds): 3.953
      ----------System.out:(1/23)----------
      temp file not deleted
      ----------System.err:(22/1411)----------
      java.net.UnknownHostException: javaweb.eng
      at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:144)
      at java.net.Socket.connect(Socket.java:430)
      at java.net.Socket.connect(Socket.java:379)
      at sun.net.NetworkClient.doConnect(NetworkClient.java:142)
      at sun.net.www.http.HttpClient.openServer(HttpClient.java:369)
      at sun.net.www.http.HttpClient.openServer(HttpClient.java:585)
      at sun.net.www.http.HttpClient.<init>(HttpClient.java:295)
      at sun.net.www.http.HttpClient.<init>(HttpClient.java:256)
      at sun.net.www.http.HttpClient.New(HttpClient.java:324)
      at sun.net.www.http.HttpClient.New(HttpClient.java:309)
      at sun.net.www.http.HttpClient.New(HttpClient.java:304)
      at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:456)
      at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:447)
      at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:549)
      at sun.net.www.protocol.jar.URLJarFile.retrieve(URLJarFile.java:168)
      at sun.net.www.protocol.jar.URLJarFile.getJarFile(URLJarFile.java:49)
      at sun.net.www.protocol.jar.JarFileFactory.get(JarFileFactory.java:66)
      at sun.net.www.protocol.jar.JarURLConnection.connect(JarURLConnection.java:88)
      at sun.net.www.protocol.jar.JarURLConnection.getJarFile(JarURLConnection.java:72)
      at DeleteTempJar.main(DeleteTempJar.java:21)
      Exception in thread "main"
      result: Failed. Execution failed: exit code 1


      test result: Failed. Execution failed: exit code 1

            alanb Alan Bateman
            mdevereuorcl Michelle Devereux (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: