Makefile revision 1008
#
# Copyright 1995-2008 Sun Microsystems, Inc. All Rights Reserved.
# 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. Sun designates this
# particular file as subject to the "Classpath" exception as provided
# by Sun in the LICENSE file that accompanied this code.
#
# 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 Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
# CA 95054 USA or visit www.sun.com if you need additional information or
# have any questions.
#
#
# Makefile to run various jdk tests
#
# Commands to run on paths to make mixed paths for java on windows
GETMIXEDPATH=echo
# Location of developer shared files
SLASH_JAVA = /java
# Platform specific settings
# Cannot trust uname output
SLASH_JAVA = J:
# A variety of ways to say X64 arch :^(
else
else
# These need to be different depending on MKS or CYGWIN
else
GETMIXEDPATH=cygpath -m -s
# 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)
PRODUCT_HOME := $(PRODUCT_HOME)
# Expect JPRT to set JPRT_PRODUCT_ARGS (e.g. -server etc.)
# Should be passed into 'java' only.
# Expect JPRT to set JPRT_PRODUCT_VM_ARGS (e.g. -Xcomp etc.)
# Should be passed into anything running the vm (java, javac, javadoc, ...).
# 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)
# Follow command with ";$(BUNDLE_UP_AND_EXIT)", so it always gets executed.
################################################################
# 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)
JT_HOME = $(JPRT_JTREG_HOME)
# Expect JPRT to set TESTDIRS to the jtreg test dirs
# Default JTREG to run (win32 script works for everybody)
export JT_HOME; \
) ; $(BUNDLE_UP_AND_EXIT)
################################################################
# packtest
# Expect JPRT to set JPRT_PACKTEST_HOME.
) ; $(BUNDLE_UP_AND_EXIT)
################################################################
# vmsqe tests
# Expect JPRT to set JPRT_VMSQE_HOME.
# Expect JPRT to set JPRT_RUNVMSQE_HOME.
# Expect JPRT to set JPRT_TONGA3_HOME.
) ; $(BUNDLE_UP_AND_EXIT)
################################################################
# jck tests
$(RM) $@
$(MKDIR) -p $(@D)
$(CP) $< $@
$(RM) $@
$(MKDIR) -p $(@D)
$(MKDIR) -p $(JCK_WORK_DIR)
-runtests \
) ; $(BUNDLE_UP_AND_EXIT)
################################################################
# jck6 tests
JCK6_RELEASE = 6b
# Expect JPRT to set JPRT_JCK6COMPILER_HOME.
# Expect JPRT to set JPRT_JCK6RUNTIME_HOME.
# Expect JPRT to set JPRT_JCK6DEVTOOLS_HOME.
################################################################
# jck7 tests
JCK7_RELEASE = 7
# Expect JPRT to set JPRT_JCK7COMPILER_HOME.
# Expect JPRT to set JPRT_JCK7RUNTIME_HOME.
# Expect JPRT to set JPRT_JCK7DEVTOOLS_HOME.
################################################################
# Phony targets (e.g. these are not filenames)
################################################################