• Home
    • View
    • Login
    This page
    • Normal
    • Export PDF
    • Page Information

    Loading...
  1. Dashboard
  2. Undefined Space
  3. HotSpot
  4. Naming HotSpot JTReg Tests

Page History

Versions Compared

Old Version 4

changes.mady.by.user Bengt Rutisson

Saved on Apr 16, 2013

compared with

New Version 5

changes.mady.by.user Bengt Rutisson

Saved on Apr 16, 2013

  • Previous Change: Difference between versions 3 and 4
  • Next Change: Difference between versions 5 and 6
  • View Page History

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

Background

The tests in the hotspot/test/ folder are grouped by component; compiler, gc, runtime and serviceability. Within these folders the convention used to be to add a folder with the bug number for the test and in that folder add a file called Test[bug_number].java.

This convention makes it hard to find tests for a particular part of a component. It uses up the folder and file names for duplicate information that is already available with the @bug keyword in JTReg.

Also, it is very hard to map a nightly failure to an actual test file since you have to remember bug numbers rather than meaningful names.

New Naming Scheme

HotSpot should be using a naming scheme that is closer to what the rest of the JDK is using. That is, to use folder and file names to give some meaning to the file structure and to use the @bug keyword to tag tests for a particular bug.

It is up to each group to organize the file structure within the corresponding component folder. To again be inspired by the other JDK teams, who normally use the java package names to group tests, it is suggested to use a simplified version of the src/ folder structure. As an example, for GC this would mean that one folder for each GC will be added.

This means that the current test called test/gc/8000311/Test8000311.java should instead be called test/gc/g1/TestResizePLAB.java.

This test can still be executed based on its bug number by doing:

Code Block
jtreg -bug:8000311

But with the new naming it is also possible to for example run all G1 tests when a change to G1 has been made by doing:

Code Block
jtreg test/gc/g1
Overview
Content Tools
ThemeBuilder

Terms of Use
• License: GPLv2
• Privacy • Trademarks • Contact Us

Powered by a free Atlassian Confluence Open Source Project License granted to https://www.atlassian.com/software/views/opensource-community-additional-license-offer. Evaluate Confluence today.

  • Kolekti ThemeBuilder Powered by Atlassian Confluence 8.5.23
  • Kolekti ThemeBuilder printed.by.atlassian.confluence
  • Report a bug
  • Atlassian News
Atlassian
Kolekti ThemeBuilder EngineAtlassian Confluence
{"serverDuration": 188, "requestCorrelationId": "b0293cb689097845"}