Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where I can find OpenJDK tests?

Tags:

java

openjdk

I am interested in how JDK is tested itself, what test engine it uses.

I found some links:

  • https://github.com/ddopson/openjdk-test - does not look as official repository
  • http://openjdk.java.net/jtreg/ - contains regression tests, points to Jonathan Gibbons' blog but seems that it is unavailable

Also, I would like to see how frameworks like Swing and JavaFX are tested.

Are there any manuals / instructions available about how to execute / look through JDK tests?

like image 757
Andrii Abramov Avatar asked Jul 20 '17 16:07

Andrii Abramov


People also ask

How do I run Jtreg test?

To execute one or more tests, you must minimally specify the version of JDK to use, and which tests to be run: % jtreg -jdk:test-jdk test-or-folder... test-jdk will be used to run the tests in the specified files and/or folders.

Is OpenJDK license free?

OpenJDK is a free and open-source implementation of the Java SE Platform Edition.


1 Answers

OpenJDK comes with its own regression test suite.

The tests can be found in the 'test' subdirectory of the individual repositories making up a JDK forest. For example, javax.swing jtreg tests for JDK 9 can be found at http://hg.openjdk.java.net/jdk9/jdk9/jdk/file/tip/test/javax/swing .

These tests are run using the jtreg tool. You can learn more about it here: http://openjdk.java.net/projects/code-tools/jtreg/intro.html

like image 90
Dalibor Topic Avatar answered Oct 16 '22 07:10

Dalibor Topic