usage of jtreg
Alan Bateman
Alan.Bateman at oracle.com
Mon Nov 15 00:38:12 PST 2010
Yongqiang Yang wrote:
> Hi everyone,
>
> How to use jtreg? When I run javatest.jar, a test suite file
> need to be opened. But I don't know what it is. I try to find info
> on internet, but there is little info about test suite file.
>
> Thank you.
>
> --
> Best Wishes
> Yongqiang Yang
>
The tests are in the jdk and hotspot repositories. To run the tests for
java.lang and sub-packages then just do:
jtreg -jdk:<your-jdk> jdk/test/java/lang
or to run the compiler tests in the hotspot repo, just do:
jtreg -jdk:<your-jdk> hotspot/test/compiler
If you are trying your own HotSpot build then you'll probably want to
specify the -vmoption to run the tests with various options. More
information on the jtreg page [1]. Also Jon Gibbon has a blog with
useful information on the various ways that tests can be run with jtreg.
-Alan
[1] http://openjdk.java.net/jtreg/
More information about the hotspot-dev
mailing list