Makefile revision 3817
3db86aab554edbb4244c8d1a1c90f152eee768afstevel# Copyright (c) 1995, 2010, Oracle and/or its affiliates. All rights reserved.
3db86aab554edbb4244c8d1a1c90f152eee768afstevel# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3db86aab554edbb4244c8d1a1c90f152eee768afstevel# This code is free software; you can redistribute it and/or modify it
3db86aab554edbb4244c8d1a1c90f152eee768afstevel# under the terms of the GNU General Public License version 2 only, as
3db86aab554edbb4244c8d1a1c90f152eee768afstevel# published by the Free Software Foundation. Oracle designates this
3db86aab554edbb4244c8d1a1c90f152eee768afstevel# particular file as subject to the "Classpath" exception as provided
3db86aab554edbb4244c8d1a1c90f152eee768afstevel# by Oracle in the LICENSE file that accompanied this code.
3db86aab554edbb4244c8d1a1c90f152eee768afstevel# This code is distributed in the hope that it will be useful, but WITHOUT
3db86aab554edbb4244c8d1a1c90f152eee768afstevel# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3db86aab554edbb4244c8d1a1c90f152eee768afstevel# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
3db86aab554edbb4244c8d1a1c90f152eee768afstevel# version 2 for more details (a copy is included in the LICENSE file that
3db86aab554edbb4244c8d1a1c90f152eee768afstevel# accompanied this code).
3db86aab554edbb4244c8d1a1c90f152eee768afstevel# You should have received a copy of the GNU General Public License version
3db86aab554edbb4244c8d1a1c90f152eee768afstevel# 2 along with this work; if not, write to the Free Software Foundation,
3db86aab554edbb4244c8d1a1c90f152eee768afstevel# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3db86aab554edbb4244c8d1a1c90f152eee768afstevel# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3db86aab554edbb4244c8d1a1c90f152eee768afstevel# or visit www.oracle.com if you need additional information or have any
3db86aab554edbb4244c8d1a1c90f152eee768afstevel# questions.
bb25c06cca41ca78e5fb87fbb8e81d55beb18c95jg# Makefile to run various jdk tests
3db86aab554edbb4244c8d1a1c90f152eee768afstevel# Empty these to get rid of some default rules
3db86aab554edbb4244c8d1a1c90f152eee768afstevel# Utilities used
3db86aab554edbb4244c8d1a1c90f152eee768afstevel# Get OS name from uname
3db86aab554edbb4244c8d1a1c90f152eee768afstevel# Commands to run on paths to make mixed paths for java on windows
3db86aab554edbb4244c8d1a1c90f152eee768afstevel# Location of developer shared files
3db86aab554edbb4244c8d1a1c90f152eee768afstevel# Platform specific settings
bb25c06cca41ca78e5fb87fbb8e81d55beb18c95jg # Check for unknown arch, try uname -p if uname -m says unknown
bb25c06cca41ca78e5fb87fbb8e81d55beb18c95jg # GNU Make or MKS overrides $(PROCESSOR_ARCHITECTURE) to always
3db86aab554edbb4244c8d1a1c90f152eee768afstevel # return "x86". Use the first word of $(PROCESSOR_IDENTIFIER) instead.
3db86aab554edbb4244c8d1a1c90f152eee768afstevel # These need to be different depending on MKS or CYGWIN
3db86aab554edbb4244c8d1a1c90f152eee768afstevel ifeq ($(findstring cygdrive,$(shell ($(CD) C:/ && $(PWD)))), )
3db86aab554edbb4244c8d1a1c90f152eee768afstevel OS_VERSION := $(shell $(UNAME) -s | $(CUT) -d'-' -f2)
3db86aab554edbb4244c8d1a1c90f152eee768afstevel# Only want major and minor numbers from os version
3db86aab554edbb4244c8d1a1c90f152eee768afstevelOS_VERSION := $(shell $(ECHO) "$(OS_VERSION)" | $(CUT) -d'.' -f1,2)
3db86aab554edbb4244c8d1a1c90f152eee768afstevel# Name to use for x86_64 arch (historically amd64, but should change someday)
PRODUCT_HOME := \
$(shell \
# Expect JPRT to set JPRT_PRODUCT_ARGS (e.g. -server etc.)
# Expect JPRT to set JPRT_PRODUCT_VM_ARGS (e.g. -Xcomp etc.)
D64_ERROR_MESSAGE=Mismatch between ARCH_DATA_MODEL=$(ARCH_DATA_MODEL) and use of -d64 in JAVA_ARGS=$(JAVA_ARGS)
TESTEXIT = \
if [ ! -s $(EXITCODE) ] ; then \
exit $${testExitCode}
jtregExitCode=$$? && \
if [ $${jtregExitCode} = 0 ] ; then \
jtregExitCode=1; \
$(ECHO) "TEST STATS: name=$(UNIQUE_DIR) run=$${runc} pass=$${passc} fail=$${failc} excluded=$${exclc}" \
USE_JTREG_SAMEVM=false
@$(SummaryInfo)
@$(SummaryInfo)
@$(SummaryInfo)
@$(SummaryInfo)
@$(SummaryInfo)
@$(SummaryInfo)
JTREG_BASIC_OPTIONS += -a
export JT_HOME; \
$(RM) $@
$(CP) $< $@
$(RM) $@
-runtests \
# Phony targets (e.g. these are not filenames)