525N/A# Makefile to run jtreg and other tests 525N/A# Product builds and langtools builds 525N/A# A full product build (or "control" build) creates a complete JDK image. 525N/A# To test a product build, set TESTJAVA to the path for the image. 525N/A# A langtools build just builds the langtools components of a JDK. 525N/A# To test a langtools build, set TESTJAVA to the path for a recent JDK 525N/A# build, and set TESTBOOTCLASSPATH to the compiled langtools classes -- 525N/A# JPRT may invoke this Makefile directly, as part of a langtools build, 0N/A# Root of this test area (important to use full paths in some places) 525N/A# Default bundle of all test results (passed or not) (JPRT only) 0N/A# Default JTREG to run 525N/A# Default JDK for JTREG and JCK 525N/A# JT_JAVA is the version of java used to run jtreg/JCK. Since it is now 525N/A# standard to execute tests in sameVM mode, it should normally be set the 525N/A# same as TESTJAVA (although not necessarily so.) 0N/A# Default JDK to test 525N/A# PRODUCT_HOME is a JPRT variable pointing to a directory containing the output from 525N/A# For langtools, this is a directory containing build and dist 564N/A# For a control build, this is build/$(PRODUCT)-$(ARCH)/XYZ-image 564N/A# (i.e, j2sdk-image or jdk-module-image) 525N/A### In the following, -refvmoptions is an undocumented option 525N/A### The following does not work JCK 7 b30 2/6/2010. Awaiting b31. 525N/A# Concurrency is the number of tests that can execute at once. 525N/A# Supported for JCK, not supported for jtreg. 525N/A# On an otherwise empty machine, suggest setting to (#cpus + 2) 525N/A# If unset, the default is (#cpus) 525N/A### RFE: determine and use #cpus 525N/A# JCK is executed using "Multi-JVM Group Mode", which is a hybrid 525N/A# of otherVM and sameVM modes. New JVMs are created and reused for 525N/A# a number of tests, then eventually discarded and a new one started. 525N/A# This amortizes the JVM startup time. The "group size" defines 525N/A# how many tests are run in a JVM before it is replaced. 525N/A# If unset, the default is 100. 525N/A### The following is not supported. Awaiting RFE 6924287 525N/A### 6924287: Jck4Jdk: Allow to configure test group size for group mode via simple command line option 525N/A### JCK_RUNTIME_OPTIONS += \ 559N/A# Timeouts -- by default, increase test timeouts when running on JPRT 525N/A# Assertions: some tests show failures when assertions are enabled. 525N/A# Since javac is typically loaded via the bootclassloader (either via TESTJAVA 525N/A# or TESTBOOTCLASSPATH), you may need -esa to enable assertions in javac. 525N/A# Include shared options 525N/A# jtreg, jck: 0: OK, 1: tests failed, 2: tests error; 3+: SERIOUS 525N/A# jtdiff: 0: OK, 1: differences found; 2+: SERIOUS 525N/A# Exit -- used for final "normal" exit from "make". Redefine to "true" to avoid 525N/A# having make exit with non-zero return code. 525N/A# Function to exit shell if exit code of preceding command is greater than or equal 525N/A# to a given level. Redefine function or preceding FATAL_*_EXIT codes as needed. 0N/A# The test directories to run 0N/A# Root of all test results 525N/A# Subdirectories for different test runs 525N/A# Default make rule -- warning, may take a while 525N/A @
echo "Testing completed successfully" 525N/A @
echo "Testing completed successfully" 525N/A @
echo "Testing completed successfully" 0N/A @
echo "Testing completed successfully" 0N/A# for use with JPRT -testrule 525N/A# Installed location of jtreg 525N/A# Version of java used to run jtreg. Should normally be the same as TESTJAVA 525N/A# Version of java to be tested. 525N/A# Additional options for jtreg 525N/A# Directories of tests to be run 525N/A# Where to write the results 525N/A echo ;
echo "Summary of jtreg test failures" ; \
0N/A# Check to make sure these directories exist 525N/A# Run JCK-compiler tests 525N/A# Installed location of JCK: should include JCK-compiler, and JCK-extras 525N/A# Version of java used to run JCK. Should normally be the same as TESTJAVA 525N/A# Version of java to be tested. 525N/A# Additional options for JCK-compiler 525N/A# Directories of tests to be run 525N/A# JCK_COMPILER_OUTPUT_DIR 525N/A# Where to write the results 525N/A# JCK_COMPILER_REFERENCE 525N/A echo ;
echo "Summary of JCK-compiler test failures" ; \
525N/A# Run JCK-runtime tests in -Xcompile mode 525N/A# This is a special mode to test javac by compiling the tests in the JCK-runtime test suite 525N/A# Normal JCK-runtime invocation belongs in the jdk/ repository. 525N/A# Installed location of JCK: should include JCK-compiler, JCK-runtime and JCK-extras 525N/A# Version of java used to run JCK. Should normally be the same as TESTJAVA 525N/A# Version of java to be tested. 525N/A# Additional options for JCK-runtime 525N/A# Directories of tests to be run 525N/A# JCK_RUNTIME_OUTPUT_DIR 525N/A# Where to write the results 525N/A echo ;
echo "Summary of JCK-runtime test failures" ; \
525N/A# Check to make sure these directories exist 525N/A echo ;
echo "Summary of test failures" ; \
0N/A# Bundle up the results 0N/A# Used to force a target rules to run 0N/A# Phony targets (e.g. these are not filenames) 525N/A# No use of suffix rules