#
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# under the terms of the GNU General Public License version 2 only, as
# published by the Free Software Foundation.
#
# This code is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
# version 2 for more details (a copy is included in the LICENSE file that
# accompanied this code).
#
# You should have received a copy of the GNU General Public License version
# 2 along with this work; if not, write to the Free Software Foundation,
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
#
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
# or visit www.oracle.com if you need additional information or have any
# questions.
#
#
#
# Makefile to run various jdk tests
#
GETMIXEDPATH=echo
# detect wether we're running in MKS or cygwin
SLASH_JAVA = J:
else
else
else
# Utilities used
CD = cd
ECHO = echo
# Root of this test area (important to use full paths in some places)
# Root of all test results
else
# Expect JPRT to set PRODUCT_HOME (the product or jdk in this case to test)
# Try to use j2sdk-image if it exists
PRODUCT_HOME := \
$(shell \
else \
fi)
# Expect JPRT to set JAVA_ARGS (e.g. -server etc.)
# Expect JPRT to set JPRT_ARCHIVE_BUNDLE (path to zip bundle for results)
# How to create the test bundle (pass or fail, we want to create this)
################################################################
# Default make rule (runs jtreg_tests)
@$(ECHO) "Testing completed successfully"
# Prep for output
@$(MKDIR) -p $(ABS_TEST_OUTPUT_DIR)
# Cleanup
$(RM) -r $(ABS_TEST_OUTPUT_DIR)
$(RM) $(ARCHIVE_BUNDLE)
################################################################
# jtreg tests
# Expect JT_HOME to be set for jtreg tests. (home for jtreg)
# Expect JPRT to set TESTDIRS to the jtreg test dirs
# Default JTREG to run (win32 script works for everybody)
# Option to tell jtreg to not run tests marked with "ignore"
else
#EXTRA_JTREG_OPTIONS =
$(JTREG_KEY_OPTION) \
$(EXTRA_JTREG_OPTIONS) \
-r:$(ABS_TEST_OUTPUT_DIR)/JTreport \
-w:$(ABS_TEST_OUTPUT_DIR)/JTwork \
-jdk:$(PRODUCT_HOME) \
$(JAVA_OPTIONS:%=-vmoption:%) \
$(JTREG_TESTDIRS) \
|| $(BUNDLE_UP_FAILED)
$(BUNDLE_UP)
################################################################
# clienttest (make sure various basic java client options work)
################################################################
# servertest (make sure various basic java server options work)
################################################################
# internalvmtests (run internal unit tests inside the VM)
################################################################
# wbapitest (make sure the whitebox testing api classes work
$(JTREG_KEY_OPTION) \
$(EXTRA_JTREG_OPTIONS) \
$(JAVA_OPTIONS:%=-vmoption:%) \
|| $(BUNDLE_UP_FAILED)
$(BUNDLE_UP)
################################################################
# packtest
# Expect JPRT to set JPRT_PACKTEST_HOME.
#EXTRA_PACKTEST_OPTIONS =
) || $(BUNDLE_UP_FAILED)
$(BUNDLE_UP)
################################################################
# Phony targets (e.g. these are not filenames)
################################################################