JDK-8179317 : [TESTBUG] rewrite runtime shell tests in java
  • Type: Bug
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 9,10
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2017-04-26
  • Updated: 2022-12-14
  • Resolved: 2020-02-05
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 11 JDK 15
11.0.19Fixed 15 b09Fixed
Related Reports
Relates :  
Relates :  
Relates :  
Description
shell tests are known to be error-prone and hard to debug, furthermore in most cases a shell script part does not do much, therefore they should be rewritten to java version.


Comments
Fix request (11u) Requesting backport of this test update to facilitate the backport of JDK-8287906 to jdk11u-dev. Backport marked as clean and testing is green.
13-12-2022

A pull request was submitted for review. URL: https://git.openjdk.org/jdk11u-dev/pull/1587 Date: 2022-12-12 15:09:06 +0000
12-12-2022

Github Change: https://github.com/openjdk/jdk/commit/ccb4ab5499275888e6a088d8bec2faccd6b4db28
12-12-2022

Changeset: ccb4ab54 Author: Mikhailo Seledtsov <mseledtsov@openjdk.org> Date: 2020-02-05 07:31:13 +0000 URL: https://git.openjdk.java.net/panama-foreign/commit/ccb4ab54
07-02-2020

URL: https://hg.openjdk.java.net/jdk/jdk/rev/5a0b13e3715d User: mseledtsov Date: 2020-02-05 15:31:52 +0000
05-02-2020

Webrev: http://cr.openjdk.java.net/~mseledtsov/8179317.00/ Testing: Ran the affected tests
25-01-2020

Updated: runtime/StackGuardPages/testme.sh:# @run shell testme.sh runtime/StackGap/testme.sh:# @run shell testme.sh runtime/TLS/testtls.sh:# @run shell testtls.sh runtime/7162488/Test7162488.sh:# @run shell Test7162488.sh vmTestbase/metaspace/flags/maxMetaspaceSize/TestDescription.java: * @run shell maxMetaspaceSize.sh
22-01-2020

I'm sorry but it's not 'feature' it's a bug, there have been several cases when shell tests sporadically crashed (in most cases due to problems w/ OS, shells, e.g. JDK-8151315) and this was the original idea behind this shell to java rewriting.
15-01-2019

Runtime Triage: This is not on our current list of priorities. We will consider this feature if we receive additional customer requirements.
15-01-2019

as of today(25th Apr 2017) there are 3 shell tests in hotspot/test/runtime: $ ack -l "@run shell" ./test/runtime/ test/runtime/6626217/Test6626217.sh test/runtime/7162488/Test7162488.sh test/runtime/StackGuardPages/testme.sh
26-04-2017