JDK-8205500 : Test plan for JDK-8202035 Archive the set of ModuleDescriptor and ModuleReference objects for observable system modules
  • Type: Sub-task
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 12
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2018-06-22
  • Updated: 2018-07-09
  • Resolved: 2018-07-09
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 12
12Fixed
Description
Tests Inventory 
1. Existing tests 
    open/test/hotspot/jtreg/runtime/SharedArchiveFile 
    open/test/hotspot/jtreg/runtime/appcds 
    open/test/hotspot/jtreg/runtime/appcds/cacheObject 

    The existing tests in open/test/hotspot/jtreg/runtime/appcds/cacheObject contains functional tests for archiving object including mirrors in open archive heap regions. 

2. New tests 
    Regression tests: None 

    Functional tests 
    1) Dump without --module-path. Verify archived system module sub-graph is used at runtime when only -cp is used. Check archived system  ModuleDescriptor objects are used at runtime.

    2) Dump without --module-path. Verify archived system module sub-graph is not used when running with --module-path. Check system ModuleDescriptor objects are not from archive at runtime.

    3)  Dump with --module-path. Verify archived system module sub-graph is not used at runtime when only -cp is used. Verify no archived system ModuleDescriptor objects at runtime.

    4) Dump with --module-path. Verify archived system module sub-graph is not used at runtime when running with --module-path. Verify no system ModuleDescriptor objects at runtime.

    5) Verify the list of system module names from archived system module graph is the same as the list from non-archived system modules at runtime.

    6) Dump without --module-path. Verify archived system module sub-graph is used at runtime when only -cp is used and with --show-module-resolution enabled (which requires resolution). Check archived system  ModuleDescriptor objects are used at runtime.

    7) Check the output with --show-module-resolution run using archived module graph and verifies it���s the same as the output from -Xshrare:off run.

    8) Test archived module graph using custom runtime image created by jlink. Dump without --module-path, archived module graph should be used at runtime when running from -cp only.

    9) Test archived module graph using custom runtime image created by jlink. Verify --show-module-resolution output should be the same as the output from -Xshrare:off run.

    JCK tests: no new tests 

Test execution matrix 
1. Tier 1 - Tier 6 tests via mach5 

Success criteria 
1. Test pass rate - at RDP-2 level of quality 
2. Test stability - all new tests are stable 
Comments
All test cases are implemented. All test executions are done.
09-07-2018

[~mseledtsov]Thank you!
02-07-2018

SQE: Test plan reviewed and approved.
02-07-2018