Makefile revision 6407
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox User# Copyright (c) 1995, 2012, Oracle and/or its affiliates. All rights reserved.
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox User# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox User# This code is free software; you can redistribute it and/or modify it
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox User# under the terms of the GNU General Public License version 2 only, as
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox User# published by the Free Software Foundation. Oracle designates this
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox User# particular file as subject to the "Classpath" exception as provided
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox User# by Oracle in the LICENSE file that accompanied this code.
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox User# This code is distributed in the hope that it will be useful, but WITHOUT
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox User# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox User# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox User# version 2 for more details (a copy is included in the LICENSE file that
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox User# accompanied this code).
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox User# You should have received a copy of the GNU General Public License version
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox User# 2 along with this work; if not, write to the Free Software Foundation,
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox User# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox User# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox User# or visit www.oracle.com if you need additional information or have any
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox User# Makefile to run various jdk tests
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox User# Empty these to get rid of some default rules
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox User# Utilities used
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox User# Get OS name from uname
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox User# Commands to run on paths to make mixed paths for java on windows
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox User# Location of developer shared files
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox User# Platform specific settings
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox User # Check for unknown arch, try uname -p if uname -m says unknown
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox User # Check for unknown arch, try uname -p if uname -m says unknown
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox User # GNU Make or MKS overrides $(PROCESSOR_ARCHITECTURE) to always
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox User # return "x86". Use the first word of $(PROCESSOR_IDENTIFIER) instead.
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox User PROC_ARCH:=$(word 1, $(PROCESSOR_IDENTIFIER))
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox User # These need to be different depending on MKS or CYGWIN
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox User ifeq ($(findstring cygdrive,$(shell ($(CD) C:/ && $(PWD)))), )
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox User OS_VERSION := $(shell $(UNAME) -s | $(CUT) -d'-' -f2)
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox User# Only want major and minor numbers from os version
7e71f05d8643aca84914437c900cb716444507e4Tinderbox UserOS_VERSION := $(shell $(ECHO) "$(OS_VERSION)" | $(CUT) -d'.' -f1,2)
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox User# Name to use for x86_64 arch (historically amd64, but should change someday)
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox User#OS_ARCH_X64_NAME:=x64
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox User# Alternate arch names (in case this arch is known by a second name)
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox User# PROBLEM_LISTS may use either name.
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox User#OS_ARCH2-x64:=amd64
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox User# Try and use the arch names consistently
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox UserOS_ARCH:=$(patsubst x64,$(OS_ARCH_X64_NAME),$(OS_ARCH))
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox UserOS_ARCH:=$(patsubst X64,$(OS_ARCH_X64_NAME),$(OS_ARCH))
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox UserOS_ARCH:=$(patsubst AMD64,$(OS_ARCH_X64_NAME),$(OS_ARCH))
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox UserOS_ARCH:=$(patsubst amd64,$(OS_ARCH_X64_NAME),$(OS_ARCH))
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox UserOS_ARCH:=$(patsubst x86_64,$(OS_ARCH_X64_NAME),$(OS_ARCH))
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox UserOS_ARCH:=$(patsubst 86_64,$(OS_ARCH_X64_NAME),$(OS_ARCH))
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox UserOS_ARCH:=$(patsubst 8664,$(OS_ARCH_X64_NAME),$(OS_ARCH))
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox UserOS_ARCH:=$(patsubst EM64T,$(OS_ARCH_X64_NAME),$(OS_ARCH))
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox UserOS_ARCH:=$(patsubst em64t,$(OS_ARCH_X64_NAME),$(OS_ARCH))
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox UserOS_ARCH:=$(patsubst intel64,$(OS_ARCH_X64_NAME),$(OS_ARCH))
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox UserOS_ARCH:=$(patsubst Intel64,$(OS_ARCH_X64_NAME),$(OS_ARCH))
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox UserOS_ARCH:=$(patsubst INTEL64,$(OS_ARCH_X64_NAME),$(OS_ARCH))
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_AGENTVM=false
@$(SummaryInfo)
@$(SummaryInfo)
@$(SummaryInfo)
JTREG_BASIC_OPTIONS += -a
export JT_HOME; \
# The jtjck.jar utility to use to run the tests
# Phony targets (e.g. these are not filenames)