• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..16-Jul-2020-

com.oracle.mxtool.junit/com/oracle/mxtool/junit/H16-Jul-2020-1,8761,175

common/H16-Jul-2020-289166

ApiDirectivesTest.javaH A D16-Jul-20201.6 KiB410

ApiTest.javaH A D16-Jul-20201.6 KiB410

AsmAarch64Test.javaH A D16-Jul-20201.6 KiB410

AsmAmd64Test.javaH A D16-Jul-20201.6 KiB410

AsmSparcTest.javaH A D16-Jul-20201.6 KiB410

CollectionsTest.javaH A D16-Jul-20201.6 KiB410

CoreAarch64Test.javaH A D16-Jul-20201.6 KiB410

CoreAmd64Test.javaH A D16-Jul-20201.6 KiB410

CoreJdk9Test.javaH A D16-Jul-20201.6 KiB410

CoreTest.javaH A D16-Jul-20201.6 KiB410

DebugTest.javaH A D16-Jul-20201.6 KiB410

EATest.javaH A D16-Jul-20201.6 KiB410

GraphTest.javaH A D16-Jul-20201.6 KiB410

HotspotAarch64Test.javaH A D16-Jul-20201.6 KiB410

HotspotAmd64Test.javaH A D16-Jul-20201.6 KiB410

HotspotJdk9Test.javaH A D16-Jul-20201.6 KiB410

HotspotLirTest.javaH A D16-Jul-20201.6 KiB410

HotspotSparcTest.javaH A D16-Jul-20201.6 KiB410

HotspotTest.javaH A D16-Jul-20201.6 KiB410

Jtt.MicroTest.javaH A D16-Jul-20201.6 KiB410

JttBackendTest.javaH A D16-Jul-20201.6 KiB410

JttBytecodeTest.javaH A D16-Jul-20201.6 KiB410

JttExceptTest.javaH A D16-Jul-20201.6 KiB410

JttHotpathTest.javaH A D16-Jul-20201.6 KiB410

JttHotspotTest.javaH A D16-Jul-20201.6 KiB410

JttJdkTest.javaH A D16-Jul-20201.6 KiB410

JttLangALTest.javaH A D16-Jul-20201.6 KiB410

JttLangMathALTest.javaH A D16-Jul-20201.6 KiB410

JttLangMathMZTest.javaH A D16-Jul-20201.6 KiB410

JttLangNZTest.javaH A D16-Jul-20201.6 KiB410

JttLoopTest.javaH A D16-Jul-20201.6 KiB410

JttOptimizeTest.javaH A D16-Jul-20201.6 KiB410

JttReflectAETest.javaH A D16-Jul-20201.6 KiB410

JttReflectFieldGetTest.javaH A D16-Jul-20201.6 KiB410

JttReflectFieldSetTest.javaH A D16-Jul-20201.6 KiB410

JttReflectGZTest.javaH A D16-Jul-20201.6 KiB410

JttThreadsTest.javaH A D16-Jul-20201.6 KiB410

LirJttTest.javaH A D16-Jul-20201.6 KiB410

LirTest.javaH A D16-Jul-20201.6 KiB410

LoopTest.javaH A D16-Jul-20201.6 KiB410

NodesTest.javaH A D16-Jul-20201.6 KiB410

OptionsTest.javaH A D16-Jul-20201.6 KiB410

PhasesCommonTest.javaH A D16-Jul-20201.6 KiB410

README.mdH A D16-Jul-20202.4 KiB4630

Replacements12Test.javaH A D16-Jul-20201.6 KiB410

Replacements9Test.javaH A D16-Jul-20201.6 KiB410

ReplacementsTest.javaH A D16-Jul-20201.6 KiB410

UtilTest.javaH A D16-Jul-20201.5 KiB410

downloadLibs.shH A D16-Jul-20201.7 KiB4618

generateTests.shH A D16-Jul-20202.9 KiB8452

README.md

1This directory contains jtreg tests which are wrapper tests to execute Graal unit tests similar way they are run in Graal project.
2The tests use compiler.graalunit.common.GraalUnitTestLauncher helper class to run Graal unit tests where the set of tests to execute
3is specified by '-prefix' argument. GraalUnitTestLauncher launches ported com.oracle.mxtool.junit.MxJUnitWrapper to run Graal unit
4tests as it is done by "mx unittest" command from Graal project.
5
6All compiler/graalunit/*.java tests were automatically generated by generateTests.sh script which reads
7"testName -> testPrefix [requiresStatement]" mapping from TestPackages.txt file and generates corresponding <testName>Test.java
8tests. The mapping takes into account tests execution time to avoid very long test runs.
9
10Graal unit tests depends on following external jar files:
11 asm-5.0.4.jar:
12 https://lafo.ssw.uni-linz.ac.at/pub/graal-external-deps/asm-5.0.4.jar
13
14 asm-tree-5.0.4.jar:
15 https://lafo.ssw.uni-linz.ac.at/pub/graal-external-deps/asm-tree-5.0.4.jar
16
17 junit-4.12.jar:
18 https://lafo.ssw.uni-linz.ac.at/pub/graal-external-deps/junit-4.12.jar
19
20 hamcrest-core-1.3.jar:
21 https://lafo.ssw.uni-linz.ac.at/pub/graal-external-deps/hamcrest-core-1.3.jar
22
23 java-allocation-instrumenter.jar:
24 https://lafo.ssw.uni-linz.ac.at/pub/java-allocation-instrumenter/java-allocation-instrumenter.jar
25
26Before running the tests you need to download these jars from above locations in build/<platform>/images/test/hotspot/jtreg/graal/
27directory. You can use 'downloadLibs.sh' script which will try to download all these libs using wget.
28
29
30Then you can run Graal unit test(s) using 'make run-test':
31
32> make run-test TEST="compiler/graalunit/ApiTest.java" TEST_VM_OPTS="-server -XX:+UnlockExperimentalVMOptions -XX:+EnableJVMCI"
33
34
35If you want to use jtreg directly you need to say jtreg where to find external jars.
36You can do it by passing additional option "-vmoptions:-Dgraalunit.libs=" or setting environment variable by using "-e:TEST_IMAGE_GRAAL_DIR=..."
37
38Example:
39> jtreg -vt -jdk:<TESTED_JDK> -vmoptions:"-server -XX:+UnlockExperimentalVMOptions -XX:+EnableJVMCI"
40        -vmoptions:"-Dgraalunit.libs=build/<platform>/images/test/hotspot/jtreg/graal"
41        compiler/graalunit/UtilTest.java
42
43To run Graal unit tests in Graal as JIT mode pass additional -vmoptions to jtreg:
44 -XX:+UnlockExperimentalVMOptions -XX:+EnableJVMCI -XX:+TieredCompilation -XX:+UseJVMCICompiler -Djvmci.Compiler=graal
45
46