0N/A#
4597N/A# Copyright (c) 1995, 2012, Oracle and/or its affiliates. All rights reserved.
1008N/A# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
1008N/A#
1008N/A# This code is free software; you can redistribute it and/or modify it
1008N/A# under the terms of the GNU General Public License version 2 only, as
2362N/A# published by the Free Software Foundation. Oracle designates this
1008N/A# particular file as subject to the "Classpath" exception as provided
2362N/A# by Oracle in the LICENSE file that accompanied this code.
1008N/A#
1008N/A# This code is distributed in the hope that it will be useful, but WITHOUT
1008N/A# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
1008N/A# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
1008N/A# version 2 for more details (a copy is included in the LICENSE file that
1008N/A# accompanied this code).
1008N/A#
1008N/A# You should have received a copy of the GNU General Public License version
1008N/A# 2 along with this work; if not, write to the Free Software Foundation,
1008N/A# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
1008N/A#
2362N/A# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
2362N/A# or visit www.oracle.com if you need additional information or have any
2362N/A# questions.
1008N/A#
1008N/A
1008N/A#
1008N/A# Makefile to run various jdk tests
0N/A#
0N/A
1821N/A# Empty these to get rid of some default rules
1821N/A.SUFFIXES:
1821N/A.SUFFIXES: .java
1821N/ACO=
1821N/AGET=
1821N/A
1821N/A# Utilities used
1821N/AAWK = awk
1821N/ACAT = cat
1821N/ACD = cd
2391N/ACHMOD = chmod
1821N/ACP = cp
1821N/ACUT = cut
2391N/ADIRNAME = dirname
1821N/AECHO = echo
1821N/AEGREP = egrep
1821N/AEXPAND = expand
2391N/AFIND = find
1821N/AMKDIR = mkdir
1821N/APWD = pwd
1821N/ASED = sed
1821N/ASORT = sort
1821N/ATEE = tee
1821N/AUNAME = uname
1821N/AUNIQ = uniq
1821N/AWC = wc
1821N/AZIP = zip
1821N/A
1821N/A# Get OS name from uname
1821N/AUNAME_S := $(shell $(UNAME) -s)
1008N/A
1008N/A# Commands to run on paths to make mixed paths for java on windows
1821N/AGETMIXEDPATH=$(ECHO)
1008N/A
1008N/A# Location of developer shared files
1008N/ASLASH_JAVA = /java
1008N/A
1008N/A# Platform specific settings
1821N/Aifeq ($(UNAME_S), SunOS)
1821N/A OS_NAME = solaris
1821N/A OS_ARCH := $(shell $(UNAME) -p)
1821N/A OS_VERSION := $(shell $(UNAME) -r)
1821N/Aendif
1821N/Aifeq ($(UNAME_S), Linux)
1821N/A OS_NAME = linux
1821N/A OS_ARCH := $(shell $(UNAME) -m)
2228N/A # Check for unknown arch, try uname -p if uname -m says unknown
2228N/A ifeq ($(OS_ARCH),unknown)
2228N/A OS_ARCH := $(shell $(UNAME) -p)
2228N/A endif
1821N/A OS_VERSION := $(shell $(UNAME) -r)
0N/Aendif
4634N/Aifeq ($(UNAME_S), Darwin)
4634N/A OS_NAME = macosx
4634N/A OS_ARCH := $(shell $(UNAME) -m)
4634N/A # Check for unknown arch, try uname -p if uname -m says unknown
4634N/A ifeq ($(OS_ARCH),unknown)
4634N/A OS_ARCH := $(shell $(UNAME) -p)
4634N/A endif
4634N/A OS_VERSION := $(shell $(UNAME) -r)
4634N/Aendif
2402N/Aifeq ($(OS_NAME),)
2402N/A OS_NAME = windows
2402N/A # GNU Make or MKS overrides $(PROCESSOR_ARCHITECTURE) to always
2402N/A # return "x86". Use the first word of $(PROCESSOR_IDENTIFIER) instead.
2402N/A ifeq ($(PROCESSOR_IDENTIFIER),)
2402N/A PROC_ARCH:=$(shell $(UNAME) -m)
2402N/A else
2402N/A PROC_ARCH:=$(word 1, $(PROCESSOR_IDENTIFIER))
2402N/A endif
2402N/A OS_ARCH:=$(PROC_ARCH)
2402N/A SLASH_JAVA = J:
2402N/A EXESUFFIX = .exe
2402N/A # These need to be different depending on MKS or CYGWIN
2402N/A ifeq ($(findstring cygdrive,$(shell ($(CD) C:/ && $(PWD)))), )
2402N/A GETMIXEDPATH = dosname -s
2402N/A OS_VERSION := $(shell $(UNAME) -r)
2402N/A else
2402N/A GETMIXEDPATH = cygpath -m -s
2402N/A OS_VERSION := $(shell $(UNAME) -s | $(CUT) -d'-' -f2)
0N/A endif
0N/Aendif
1008N/A
1821N/A# Only want major and minor numbers from os version
1821N/AOS_VERSION := $(shell $(ECHO) "$(OS_VERSION)" | $(CUT) -d'.' -f1,2)
1821N/A
2228N/A# Name to use for x86_64 arch (historically amd64, but should change someday)
2228N/AOS_ARCH_X64_NAME:=amd64
2228N/A#OS_ARCH_X64_NAME:=x64
2228N/A
2228N/A# Alternate arch names (in case this arch is known by a second name)
2228N/A# PROBLEM_LISTS may use either name.
2228N/AOS_ARCH2-amd64:=x64
2228N/A#OS_ARCH2-x64:=amd64
2228N/A
2228N/A# Try and use the arch names consistently
2402N/AOS_ARCH:=$(patsubst x64,$(OS_ARCH_X64_NAME),$(OS_ARCH))
2402N/AOS_ARCH:=$(patsubst X64,$(OS_ARCH_X64_NAME),$(OS_ARCH))
2402N/AOS_ARCH:=$(patsubst AMD64,$(OS_ARCH_X64_NAME),$(OS_ARCH))
2402N/AOS_ARCH:=$(patsubst amd64,$(OS_ARCH_X64_NAME),$(OS_ARCH))
2402N/AOS_ARCH:=$(patsubst x86_64,$(OS_ARCH_X64_NAME),$(OS_ARCH))
4634N/AOS_ARCH:=$(patsubst 86_64,$(OS_ARCH_X64_NAME),$(OS_ARCH))
2402N/AOS_ARCH:=$(patsubst 8664,$(OS_ARCH_X64_NAME),$(OS_ARCH))
2402N/AOS_ARCH:=$(patsubst EM64T,$(OS_ARCH_X64_NAME),$(OS_ARCH))
2402N/AOS_ARCH:=$(patsubst em64t,$(OS_ARCH_X64_NAME),$(OS_ARCH))
2402N/AOS_ARCH:=$(patsubst intel64,$(OS_ARCH_X64_NAME),$(OS_ARCH))
2402N/AOS_ARCH:=$(patsubst Intel64,$(OS_ARCH_X64_NAME),$(OS_ARCH))
2402N/AOS_ARCH:=$(patsubst INTEL64,$(OS_ARCH_X64_NAME),$(OS_ARCH))
2402N/AOS_ARCH:=$(patsubst IA64,ia64,$(OS_ARCH))
2402N/AOS_ARCH:=$(patsubst X86,i586,$(OS_ARCH))
2402N/AOS_ARCH:=$(patsubst x86,i586,$(OS_ARCH))
2402N/AOS_ARCH:=$(patsubst i386,i586,$(OS_ARCH))
2402N/AOS_ARCH:=$(patsubst i486,i586,$(OS_ARCH))
2402N/AOS_ARCH:=$(patsubst i686,i586,$(OS_ARCH))
2402N/AOS_ARCH:=$(patsubst 386,i586,$(OS_ARCH))
2402N/AOS_ARCH:=$(patsubst 486,i586,$(OS_ARCH))
2402N/AOS_ARCH:=$(patsubst 586,i586,$(OS_ARCH))
2402N/AOS_ARCH:=$(patsubst 686,i586,$(OS_ARCH))
1821N/A
2228N/A# Default ARCH_DATA_MODEL settings
2228N/AARCH_DATA_MODEL-i586 = 32
2228N/AARCH_DATA_MODEL-$(OS_ARCH_X64_NAME) = 64
2228N/AARCH_DATA_MODEL-ia64 = 64
2228N/AARCH_DATA_MODEL-sparc = 32
2228N/AARCH_DATA_MODEL-sparcv9 = 64
2228N/A
2228N/A# If ARCH_DATA_MODEL is not defined, try and pick a reasonable default
2228N/Aifndef ARCH_DATA_MODEL
2228N/A ARCH_DATA_MODEL:=$(ARCH_DATA_MODEL-$(OS_ARCH))
2228N/Aendif
1821N/Aifndef ARCH_DATA_MODEL
1821N/A ARCH_DATA_MODEL=32
1821N/Aendif
2228N/A
2228N/A# Platform directory name
2228N/APLATFORM_OS = $(OS_NAME)-$(OS_ARCH)
2228N/A
2228N/A# Check ARCH_DATA_MODEL, adjust OS_ARCH accordingly on solaris
1821N/AARCH_DATA_MODEL_ERROR= \
2228N/A ARCH_DATA_MODEL=$(ARCH_DATA_MODEL) cannot be used with $(PLATFORM_OS)
1821N/Aifeq ($(ARCH_DATA_MODEL),64)
2228N/A ifeq ($(PLATFORM_OS),solaris-i586)
2228N/A OS_ARCH=$(OS_ARCH_X64_NAME)
1821N/A endif
2228N/A ifeq ($(PLATFORM_OS),solaris-sparc)
1821N/A OS_ARCH=sparcv9
1821N/A endif
1821N/A ifeq ($(OS_ARCH),i586)
1821N/A x:=$(warning "WARNING: $(ARCH_DATA_MODEL_ERROR)")
1821N/A endif
1821N/A ifeq ($(OS_ARCH),sparc)
1821N/A x:=$(warning "WARNING: $(ARCH_DATA_MODEL_ERROR)")
1821N/A endif
1821N/Aelse
1821N/A ifeq ($(ARCH_DATA_MODEL),32)
2228N/A ifeq ($(OS_ARCH),$(OS_ARCH_X64_NAME))
1821N/A x:=$(warning "WARNING: $(ARCH_DATA_MODEL_ERROR)")
1821N/A endif
1821N/A ifeq ($(OS_ARCH),ia64)
1821N/A x:=$(warning "WARNING: $(ARCH_DATA_MODEL_ERROR)")
1821N/A endif
1821N/A ifeq ($(OS_ARCH),sparcv9)
1821N/A x:=$(warning "WARNING: $(ARCH_DATA_MODEL_ERROR)")
1821N/A endif
0N/A else
1821N/A x:=$(warning "WARNING: $(ARCH_DATA_MODEL_ERROR)")
1008N/A endif
0N/Aendif
0N/A
2228N/A# Alternate OS_ARCH name (defaults to OS_ARCH)
2228N/AOS_ARCH2:=$(OS_ARCH2-$(OS_ARCH))
2228N/Aifeq ($(OS_ARCH2),)
2228N/A OS_ARCH2:=$(OS_ARCH)
2228N/Aendif
2228N/A
0N/A# Root of this test area (important to use full paths in some places)
1821N/ATEST_ROOT := $(shell $(PWD))
0N/A
1008N/A# Root of all test results
1008N/Aifdef ALT_OUTPUTDIR
1008N/A ABS_OUTPUTDIR = $(ALT_OUTPUTDIR)
1008N/Aelse
2228N/A ABS_OUTPUTDIR = $(TEST_ROOT)/../build/$(PLATFORM_OS)
1008N/Aendif
2228N/AABS_PLATFORM_BUILD_ROOT = $(ABS_OUTPUTDIR)
2228N/AABS_TEST_OUTPUT_DIR := $(ABS_PLATFORM_BUILD_ROOT)/testoutput/$(UNIQUE_DIR)
0N/A
1008N/A# Expect JPRT to set PRODUCT_HOME (the product or jdk in this case to test)
1008N/Aifndef PRODUCT_HOME
1008N/A # Try to use j2sdk-image if it exists
2228N/A ABS_JDK_IMAGE = $(ABS_PLATFORM_BUILD_ROOT)/j2sdk-image
2228N/A PRODUCT_HOME := \
2228N/A $(shell \
2228N/A if [ -d $(ABS_JDK_IMAGE) ] ; then \
2228N/A $(ECHO) "$(ABS_JDK_IMAGE)"; \
2228N/A else \
2228N/A $(ECHO) "$(ABS_PLATFORM_BUILD_ROOT)"; \
1008N/A fi)
1008N/A PRODUCT_HOME := $(PRODUCT_HOME)
1008N/Aendif
1008N/A
1008N/A# Expect JPRT to set JPRT_PRODUCT_ARGS (e.g. -server etc.)
1008N/A# Should be passed into 'java' only.
1821N/A# Could include: -d64 -server -client OR any java option
1008N/Aifdef JPRT_PRODUCT_ARGS
1008N/A JAVA_ARGS = $(JPRT_PRODUCT_ARGS)
0N/Aendif
0N/A
1008N/A# Expect JPRT to set JPRT_PRODUCT_VM_ARGS (e.g. -Xcomp etc.)
1008N/A# Should be passed into anything running the vm (java, javac, javadoc, ...).
1008N/Aifdef JPRT_PRODUCT_VM_ARGS
1008N/A JAVA_VM_ARGS = $(JPRT_PRODUCT_VM_ARGS)
1008N/Aendif
0N/A
1821N/A# Check JAVA_ARGS arguments based on ARCH_DATA_MODEL etc.
1821N/Aifeq ($(OS_NAME),solaris)
1821N/A D64_ERROR_MESSAGE=Mismatch between ARCH_DATA_MODEL=$(ARCH_DATA_MODEL) and use of -d64 in JAVA_ARGS=$(JAVA_ARGS)
1821N/A ifeq ($(ARCH_DATA_MODEL),32)
1821N/A ifneq ($(findstring -d64,$(JAVA_ARGS)),)
1821N/A x:=$(warning "WARNING: $(D64_ERROR_MESSAGE)")
1821N/A endif
1821N/A endif
1821N/A ifeq ($(ARCH_DATA_MODEL),64)
1821N/A ifeq ($(findstring -d64,$(JAVA_ARGS)),)
1821N/A x:=$(warning "WARNING: $(D64_ERROR_MESSAGE)")
1821N/A endif
1821N/A endif
1821N/Aendif
1821N/A
2402N/A# Macro to run make and set the shared library permissions
2402N/Adefine SharedLibraryPermissions
2402N/A$(MAKE) SHARED_LIBRARY_DIR=$1 UNIQUE_DIR=$@ shared_library_permissions
2391N/Aendef
2391N/A
1008N/A# Expect JPRT to set JPRT_ARCHIVE_BUNDLE (path to zip bundle for results)
1008N/AARCHIVE_BUNDLE = $(ABS_TEST_OUTPUT_DIR)/ARCHIVE_BUNDLE.zip
1008N/Aifdef JPRT_ARCHIVE_BUNDLE
1008N/A ARCHIVE_BUNDLE = $(JPRT_ARCHIVE_BUNDLE)
1008N/Aendif
0N/A
1008N/A# How to create the test bundle (pass or fail, we want to create this)
1008N/A# Follow command with ";$(BUNDLE_UP_AND_EXIT)", so it always gets executed.
2391N/AZIP_UP_RESULTS = ( $(MKDIR) -p `$(DIRNAME) $(ARCHIVE_BUNDLE)` \
1008N/A && $(CD) $(ABS_TEST_OUTPUT_DIR) \
3866N/A && $(CHMOD) -R a+r . \
1008N/A && $(ZIP) -q -r $(ARCHIVE_BUNDLE) . )
1821N/ASUMMARY_TXT = $(shell $(GETMIXEDPATH) "$(ABS_TEST_OUTPUT_DIR)")/JTreport/text/summary.txt
1821N/ASTATS_TXT_NAME = Stats.txt
1821N/ASTATS_TXT = $(shell $(GETMIXEDPATH) "$(ABS_TEST_OUTPUT_DIR)")/$(STATS_TXT_NAME)
1821N/ARUNLIST = $(shell $(GETMIXEDPATH) "$(ABS_TEST_OUTPUT_DIR)")/runlist.txt
1821N/APASSLIST = $(shell $(GETMIXEDPATH) "$(ABS_TEST_OUTPUT_DIR)")/passlist.txt
1821N/AFAILLIST = $(shell $(GETMIXEDPATH) "$(ABS_TEST_OUTPUT_DIR)")/faillist.txt
1947N/AEXITCODE = $(shell $(GETMIXEDPATH) "$(ABS_TEST_OUTPUT_DIR)")/exitcode.txt
1947N/A
1947N/ATESTEXIT = \
1947N/A if [ ! -s $(EXITCODE) ] ; then \
1947N/A $(ECHO) "ERROR: EXITCODE file not filled in."; \
1947N/A $(ECHO) "1" > $(EXITCODE); \
1947N/A fi ; \
1947N/A testExitCode=`$(CAT) $(EXITCODE)`; \
1947N/A $(ECHO) "EXIT CODE: $${testExitCode}"; \
2017N/A exit $${testExitCode}
1947N/A
1821N/ABUNDLE_UP_AND_EXIT = \
1821N/A( \
1947N/A jtregExitCode=$$? && \
1821N/A _summary="$(SUMMARY_TXT)"; \
1947N/A $(RM) -f $(STATS_TXT) $(RUNLIST) $(PASSLIST) $(FAILLIST) $(EXITCODE); \
1947N/A $(ECHO) "$${jtregExitCode}" > $(EXITCODE); \
1821N/A if [ -r "$${_summary}" ] ; then \
2017N/A $(ECHO) "Summary: $(UNIQUE_DIR)" > $(STATS_TXT); \
1821N/A $(EXPAND) $${_summary} | $(EGREP) -v ' Not run\.' > $(RUNLIST); \
1821N/A $(EGREP) ' Passed\.' $(RUNLIST) \
1821N/A | $(EGREP) -v ' Error\.' \
1821N/A | $(EGREP) -v ' Failed\.' > $(PASSLIST); \
1821N/A ( $(EGREP) ' Failed\.' $(RUNLIST); \
1821N/A $(EGREP) ' Error\.' $(RUNLIST); \
1821N/A $(EGREP) -v ' Passed\.' $(RUNLIST) ) \
1821N/A | $(SORT) | $(UNIQ) > $(FAILLIST); \
1947N/A if [ $${jtregExitCode} != 0 -o -s $(FAILLIST) ] ; then \
1821N/A $(EXPAND) $(FAILLIST) \
1821N/A | $(CUT) -d' ' -f1 \
1821N/A | $(SED) -e 's@^@FAILED: @' >> $(STATS_TXT); \
1947N/A if [ $${jtregExitCode} = 0 ] ; then \
1947N/A jtregExitCode=1; \
1947N/A fi; \
1821N/A fi; \
1821N/A runc="`$(CAT) $(RUNLIST) | $(WC) -l | $(AWK) '{print $$1;}'`"; \
1821N/A passc="`$(CAT) $(PASSLIST) | $(WC) -l | $(AWK) '{print $$1;}'`"; \
1821N/A failc="`$(CAT) $(FAILLIST) | $(WC) -l | $(AWK) '{print $$1;}'`"; \
1821N/A exclc="`$(CAT) $(EXCLUDELIST) | $(WC) -l | $(AWK) '{print $$1;}'`"; \
2500N/A $(ECHO) "TEST STATS: name=$(UNIQUE_DIR) run=$${runc} pass=$${passc} fail=$${failc} excluded=$${exclc}" \
1821N/A >> $(STATS_TXT); \
1821N/A else \
1821N/A $(ECHO) "Missing file: $${_summary}" >> $(STATS_TXT); \
1821N/A fi; \
3866N/A if [ -f $(STATS_TXT) ] ; then \
3866N/A $(CAT) $(STATS_TXT); \
3866N/A fi; \
2203N/A $(ZIP_UP_RESULTS) ; \
1947N/A $(TESTEXIT) \
1821N/A)
1008N/A
1008N/A################################################################
0N/A
1008N/A# Default make rule (runs jtreg_tests)
1008N/Aall: jtreg_tests
1008N/A @$(ECHO) "Testing completed successfully"
0N/A
1008N/A# Prep for output
1008N/Aprep: clean
1008N/A @$(MKDIR) -p $(ABS_TEST_OUTPUT_DIR)
2500N/A @$(MKDIR) -p `$(DIRNAME) $(ARCHIVE_BUNDLE)`
0N/A
0N/A# Cleanup
0N/Aclean:
1008N/A $(RM) -r $(ABS_TEST_OUTPUT_DIR)
1008N/A $(RM) $(ARCHIVE_BUNDLE)
1008N/A
1008N/A################################################################
1008N/A
1008N/A# jtreg tests
1008N/A
1008N/A# Expect JT_HOME to be set for jtreg tests. (home for jtreg)
1934N/Aifndef JT_HOME
4764N/A JT_HOME = $(SLASH_JAVA)/re/jtreg/4.1/promoted/latest/binaries/jtreg
1934N/A ifdef JPRT_JTREG_HOME
1934N/A JT_HOME = $(JPRT_JTREG_HOME)
1934N/A endif
1008N/Aendif
1008N/A
1008N/A# Expect JPRT to set TESTDIRS to the jtreg test dirs
1008N/Aifndef TESTDIRS
1821N/A TESTDIRS = demo
1821N/Aendif
1821N/A
4764N/A# Agentvm settings (default is false)
4764N/Aifndef USE_JTREG_AGENTVM
4764N/A USE_JTREG_AGENTVM=false
1821N/Aendif
4764N/A# With agentvm, you cannot use -javaoptions?
4764N/Aifeq ($(USE_JTREG_AGENTVM),true)
4764N/A JTREG_AGENTVM_OPTION = -agentvm
4764N/A EXTRA_JTREG_OPTIONS += $(JTREG_AGENTVM_OPTION) $(JAVA_ARGS) $(JAVA_ARGS:%=-vmoption:%)
1821N/A JTREG_TEST_OPTIONS = $(JAVA_VM_ARGS:%=-vmoption:%)
1821N/Aelse
1821N/A JTREG_TEST_OPTIONS = $(JAVA_ARGS:%=-javaoptions:%) $(JAVA_VM_ARGS:%=-vmoption:%)
1821N/Aendif
1821N/A
4764N/Aifdef CONCURRENCY
4764N/A EXTRA_JTREG_OPTIONS += -concurrency:$(CONCURRENCY)
4764N/Aendif
4764N/A
1821N/A# Some tests annoy me and fail frequently
1821N/APROBLEM_LIST=ProblemList.txt
1934N/APROBLEM_LISTS=$(PROBLEM_LIST) $(wildcard closed/$(PROBLEM_LIST))
1821N/AEXCLUDELIST=$(ABS_TEST_OUTPUT_DIR)/excludelist.txt
1821N/A
1821N/A# Create exclude list for this platform and arch
1821N/Aifdef NO_EXCLUDES
3866N/A$(EXCLUDELIST): $(PROBLEM_LISTS) $(TEST_DEPENDENCIES)
1821N/A @$(ECHO) "NOTHING_EXCLUDED" > $@
1821N/Aelse
3866N/A$(EXCLUDELIST): $(PROBLEM_LISTS) $(TEST_DEPENDENCIES)
1821N/A @$(RM) $@ $@.temp1 $@.temp2
1934N/A @(($(CAT) $(PROBLEM_LISTS) | $(EGREP) -- '$(OS_NAME)-all' ) ;\
2500N/A ($(CAT) $(PROBLEM_LISTS) | $(EGREP) -- '$(PLATFORM_OS)' ) ;\
2228N/A ($(CAT) $(PROBLEM_LISTS) | $(EGREP) -- '$(OS_NAME)-$(OS_ARCH2)' ) ;\
1934N/A ($(CAT) $(PROBLEM_LISTS) | $(EGREP) -- '$(OS_NAME)-$(OS_VERSION)') ;\
1934N/A ($(CAT) $(PROBLEM_LISTS) | $(EGREP) -- 'generic-$(OS_ARCH)' ) ;\
2228N/A ($(CAT) $(PROBLEM_LISTS) | $(EGREP) -- 'generic-$(OS_ARCH2)' ) ;\
1934N/A ($(CAT) $(PROBLEM_LISTS) | $(EGREP) -- 'generic-all' ) ;\
1934N/A ($(ECHO) "#") ;\
1821N/A ) | $(SED) -e 's@^[\ ]*@@' \
1821N/A | $(EGREP) -v '^#' > $@.temp1
3866N/A for tdir in $(TESTDIRS) SOLARIS_10_SH_BUG_NO_EMPTY_FORS ; do \
1821N/A ( ( $(CAT) $@.temp1 | $(EGREP) "^$${tdir}" ) ; $(ECHO) "#" ) >> $@.temp2 ; \
1821N/A done
1821N/A @$(ECHO) "# at least one line" >> $@.temp2
1821N/A @( $(EGREP) -v '^#' $@.temp2 ; true ) > $@
1821N/A @$(ECHO) "Excluding list contains `$(EXPAND) $@ | $(WC) -l` items"
1008N/Aendif
1008N/A
1934N/A# Select list of directories that exist
1934N/Adefine TestDirs
1934N/A$(foreach i,$1,$(wildcard ${i})) $(foreach i,$1,$(wildcard closed/${i}))
1934N/Aendef
4764N/A# Running batches of tests with or without agentvm
4764N/Adefine RunAgentvmBatch
4764N/A$(ECHO) "Running tests in agentvm mode: $?"
4764N/A$(MAKE) TEST_DEPENDENCIES="$?" TESTDIRS="$?" USE_JTREG_AGENTVM=true UNIQUE_DIR=$@ jtreg_tests
1821N/Aendef
1821N/Adefine RunOthervmBatch
3740N/A$(ECHO) "Running tests in othervm mode: $?"
4764N/A$(MAKE) TEST_DEPENDENCIES="$?" TESTDIRS="$?" USE_JTREG_AGENTVM=false UNIQUE_DIR=$@ jtreg_tests
1821N/Aendef
1821N/Adefine SummaryInfo
2017N/A$(ECHO) "########################################################"
1821N/A$(CAT) $(?:%=$(ABS_TEST_OUTPUT_DIR)/%/$(STATS_TXT_NAME))
2017N/A$(ECHO) "########################################################"
1821N/Aendef
1821N/A
1821N/A# ------------------------------------------------------------------
1821N/A
1821N/A# Batches of tests (somewhat arbitrary assigments to jdk_* targets)
1821N/AJDK_ALL_TARGETS =
1821N/A
1821N/A# Stable othervm testruns (minus items from PROBLEM_LIST)
1821N/A# Using samevm has problems, and doesn't help performance as much as others.
1821N/AJDK_ALL_TARGETS += jdk_awt
4908N/Ajdk_awt: $(call TestDirs, com/sun/awt java/awt sun/awt \
4908N/A javax/imageio javax/print sun/pisces)
1821N/A $(call RunOthervmBatch)
1821N/A
1821N/A# Stable samevm testruns (minus items from PROBLEM_LIST)
1821N/AJDK_ALL_TARGETS += jdk_beans1
3740N/Ajdk_beans1: $(call TestDirs, \
3740N/A java/beans/beancontext java/beans/PropertyChangeSupport \
1821N/A java/beans/Introspector java/beans/Performance \
3740N/A java/beans/VetoableChangeSupport java/beans/Statement)
4764N/A $(call RunAgentvmBatch)
1821N/A
1821N/A# Stable othervm testruns (minus items from PROBLEM_LIST)
1821N/A# Using samevm has serious problems with these tests
1821N/AJDK_ALL_TARGETS += jdk_beans2
3740N/Ajdk_beans2: $(call TestDirs, \
3740N/A java/beans/Beans java/beans/EventHandler java/beans/XMLDecoder \
3740N/A java/beans/PropertyEditor)
1821N/A $(call RunOthervmBatch)
2017N/A
2017N/A# Stable othervm testruns (minus items from PROBLEM_LIST)
4764N/A# Using agentvm has serious problems with these tests
1821N/AJDK_ALL_TARGETS += jdk_beans3
3740N/Ajdk_beans3: $(call TestDirs, java/beans/XMLEncoder)
1821N/A $(call RunOthervmBatch)
1821N/A
2017N/A# All beans tests
1934N/Ajdk_beans: jdk_beans1 jdk_beans2 jdk_beans3
1934N/A @$(SummaryInfo)
1934N/A
4764N/A# Stable agentvm testruns (minus items from PROBLEM_LIST)
1821N/AJDK_ALL_TARGETS += jdk_io
3740N/Ajdk_io: $(call TestDirs, java/io)
4764N/A $(call RunAgentvmBatch)
1821N/A
5138N/A# Stable othervm testruns (minus items from PROBLEM_LIST)
5138N/A# Using agentvm has serious problems with these tests
5138N/Aifdef OPENJDK
5138N/Ajdk_jfr:
5138N/Aelse
5138N/AJDK_ALL_TARGETS += jdk_jfr
5138N/Ajdk_jfr: $(call TestDirs, com/oracle/jfr)
5138N/A $(call RunOthervmBatch)
5138N/Aendif
5138N/A
4764N/A# Stable agentvm testruns (minus items from PROBLEM_LIST)
1821N/AJDK_ALL_TARGETS += jdk_lang
6407N/Ajdk_lang: $(call TestDirs, java/lang sun/invoke sun/misc vm sun/reflect)
4764N/A $(call RunAgentvmBatch)
1821N/A
1821N/A# Stable othervm testruns (minus items from PROBLEM_LIST)
4764N/A# Using agentvm has serious problems with these tests
5526N/AJDK_ALL_TARGETS += jdk_jmx
5526N/Ajdk_jmx: $(call TestDirs, javax/management com/sun/jmx)
1821N/A $(call RunOthervmBatch)
1821N/A
1821N/A# Stable othervm testruns (minus items from PROBLEM_LIST)
4764N/A# Using agentvm has serious problems with these tests
5526N/AJDK_ALL_TARGETS += jdk_management
5526N/Ajdk_management: $(call TestDirs, com/sun/management sun/management)
1821N/A $(call RunOthervmBatch)
1821N/A
1821N/A# Stable samevm testruns (minus items from PROBLEM_LIST)
1821N/AJDK_ALL_TARGETS += jdk_math
3740N/Ajdk_math: $(call TestDirs, java/math)
4764N/A $(call RunAgentvmBatch)
1821N/A
1821N/A# Stable samevm testruns (minus items from PROBLEM_LIST)
5526N/AJDK_ALL_TARGETS += jdk_other
5526N/Ajdk_other: $(call TestDirs, \
5526N/A demo/jvmti demo/zipfs \
5526N/A javax/naming com/sun/jndi \
5526N/A javax/script \
5552N/A java/sql javax/sql \
5526N/A javax/smartcardio \
5736N/A javax/xml/soap \
6117N/A javax/xml/jaxp \
5526N/A com/sun/xml \
5526N/A javax/xml/ws com/sun/internal/ws \
5526N/A com/sun/org/apache/xerces \
5526N/A com/sun/corba \
5526N/A com/sun/tracing \
5526N/A sun/usagetracker)
4764N/A $(call RunAgentvmBatch)
1821N/A
1821N/A# Stable samevm testruns (minus items from PROBLEM_LIST)
1821N/AJDK_ALL_TARGETS += jdk_net
5526N/Ajdk_net: $(call TestDirs, com/sun/net java/net sun/net com/oracle/net)
4764N/A $(call RunAgentvmBatch)
1821N/A
2546N/A# Stable samevm testruns (minus items from PROBLEM_LIST)
5526N/Ajdk_nio: $(call TestDirs, java/nio sun/nio com/oracle/nio)
2402N/A $(call SharedLibraryPermissions,java/nio/channels)
4764N/A $(call RunAgentvmBatch)
2017N/A
2546N/A# Stable samevm testruns (minus items from PROBLEM_LIST)
4499N/Ajdk_sctp: $(call TestDirs, com/sun/nio/sctp)
4764N/A $(call RunAgentvmBatch)
4499N/A
1821N/A# Stable othervm testruns (minus items from PROBLEM_LIST)
1821N/A# Using samevm has serious problems with these tests
1821N/AJDK_ALL_TARGETS += jdk_rmi
5526N/Ajdk_rmi: $(call TestDirs, java/rmi sun/rmi javax/rmi/ssl)
1821N/A $(call RunOthervmBatch)
1821N/A
1821N/A# Stable samevm testruns (minus items from PROBLEM_LIST)
1821N/AJDK_ALL_TARGETS += jdk_security1
3740N/Ajdk_security1: $(call TestDirs, java/security)
4764N/A $(call RunAgentvmBatch)
1821N/A
1821N/A# Stable othervm testruns (minus items from PROBLEM_LIST)
1821N/A# Using samevm has serious problems with these tests
1821N/AJDK_ALL_TARGETS += jdk_security2
3740N/Ajdk_security2: $(call TestDirs, javax/crypto com/sun/crypto)
5910N/A $(call RunAgentvmBatch)
2017N/A
2017N/A# Stable othervm testruns (minus items from PROBLEM_LIST)
2017N/A# Using samevm has serious problems with these tests
1821N/AJDK_ALL_TARGETS += jdk_security3
3740N/Ajdk_security3: $(call TestDirs, com/sun/security lib/security \
5526N/A javax/security sun/security \
5526N/A com/sun/org/apache/xml/internal/security \
5526N/A com/oracle/security)
2402N/A $(call SharedLibraryPermissions,sun/security)
5911N/A $(call RunAgentvmBatch)
1821N/A
2017N/A# All security tests
1934N/Ajdk_security: jdk_security1 jdk_security2 jdk_security3
1934N/A @$(SummaryInfo)
1934N/A
4908N/A# Stable samevm testruns (minus items from PROBLEM_LIST)
4908N/AJDK_ALL_TARGETS += jdk_sound
4908N/Ajdk_sound: $(call TestDirs, javax/sound)
4908N/A $(call RunAgentvmBatch)
4908N/A
1821N/A# Stable othervm testruns (minus items from PROBLEM_LIST)
1821N/A# Using samevm has problems, and doesn't help performance as much as others.
1821N/AJDK_ALL_TARGETS += jdk_swing
4908N/Ajdk_swing: $(call TestDirs, javax/swing sun/java2d \
4908N/A demo/jfc com/sun/java/swing)
1821N/A $(call RunOthervmBatch)
1821N/A
1821N/A# Stable samevm testruns (minus items from PROBLEM_LIST)
1821N/AJDK_ALL_TARGETS += jdk_text
3740N/Ajdk_text: $(call TestDirs, java/text sun/text)
4764N/A $(call RunAgentvmBatch)
1821N/A
2017N/A# Stable samevm testruns (minus items from PROBLEM_LIST)
5526N/AJDK_ALL_TARGETS += jdk_jdi
5526N/Ajdk_jdi: $(call TestDirs, com/sun/jdi)
4764N/A $(call RunAgentvmBatch)
2017N/A
2017N/A# Stable othervm testruns (minus items from PROBLEM_LIST)
2017N/A# Using samevm has serious problems with these tests
5526N/AJDK_ALL_TARGETS += jdk_tools
5526N/Ajdk_tools: $(call TestDirs, \
5526N/A com/sun/tools sun/jvmstat sun/tools tools \
6046N/A com/sun/tracing)
2402N/A $(call SharedLibraryPermissions,tools/launcher)
4764N/A $(call RunAgentvmBatch)
1821N/A
1821N/A# Stable samevm testruns (minus items from PROBLEM_LIST)
1821N/AJDK_ALL_TARGETS += jdk_util
3740N/Ajdk_util: $(call TestDirs, java/util sun/util)
4764N/A $(call RunAgentvmBatch)
1821N/A
1821N/A# ------------------------------------------------------------------
1821N/A
1821N/A# Run all tests
2017N/AFILTER_OUT_LIST=jdk_awt jdk_rmi jdk_swing
2017N/AJDK_ALL_STABLE_TARGETS := $(filter-out $(FILTER_OUT_LIST), $(JDK_ALL_TARGETS))
2017N/Ajdk_all: $(JDK_ALL_STABLE_TARGETS)
1821N/A @$(SummaryInfo)
1821N/A
1821N/A# These are all phony targets
1821N/APHONY_LIST += $(JDK_ALL_TARGETS)
1821N/A
1821N/A# ------------------------------------------------------------------
1821N/A
1008N/A# Default JTREG to run (win32 script works for everybody)
1008N/AJTREG = $(JT_HOME)/win32/bin/jtreg
4764N/A# Add any extra options (agentvm etc.)
1821N/AJTREG_BASIC_OPTIONS += $(EXTRA_JTREG_OPTIONS)
1821N/A# Only run automatic tests
1821N/AJTREG_BASIC_OPTIONS += -a
2020N/A# Always turn on assertions
2020N/AJTREG_ASSERT_OPTION = -ea -esa
2020N/AJTREG_BASIC_OPTIONS += $(JTREG_ASSERT_OPTION)
1821N/A# Report details on all failed or error tests, times too
1821N/AJTREG_BASIC_OPTIONS += -v:fail,error,time
1821N/A# Retain all files for failing tests
1821N/AJTREG_BASIC_OPTIONS += -retain:fail,error
1821N/A# Ignore tests are not run and completely silent about it
2020N/AJTREG_IGNORE_OPTION = -ignore:quiet
2020N/AJTREG_BASIC_OPTIONS += $(JTREG_IGNORE_OPTION)
2017N/A# Multiple by 4 the timeout numbers
2020N/AJTREG_TIMEOUT_OPTION = -timeoutFactor:4
2020N/AJTREG_BASIC_OPTIONS += $(JTREG_TIMEOUT_OPTION)
1821N/A# Boost the max memory for jtreg to avoid gc thrashing
2020N/AJTREG_MEMORY_OPTION = -J-Xmx512m
2020N/AJTREG_BASIC_OPTIONS += $(JTREG_MEMORY_OPTION)
1008N/A
1821N/A# Make sure jtreg exists
1821N/A$(JTREG): $(JT_HOME)
1821N/A
1821N/A# Run jtreg
1821N/Ajtreg_tests: prep $(PRODUCT_HOME) $(JTREG) $(EXCLUDELIST)
1821N/A @$(EXPAND) $(EXCLUDELIST) \
1821N/A | $(CUT) -d' ' -f1 \
1821N/A | $(SED) -e 's@^@Excluding: @'
1821N/A ( \
1821N/A ( JT_HOME=$(shell $(GETMIXEDPATH) "$(JT_HOME)"); \
1821N/A export JT_HOME; \
1821N/A $(shell $(GETMIXEDPATH) "$(JTREG)") \
1821N/A $(JTREG_BASIC_OPTIONS) \
1821N/A -r:$(shell $(GETMIXEDPATH) "$(ABS_TEST_OUTPUT_DIR)")/JTreport \
1821N/A -w:$(shell $(GETMIXEDPATH) "$(ABS_TEST_OUTPUT_DIR)")/JTwork \
1821N/A -jdk:$(shell $(GETMIXEDPATH) "$(PRODUCT_HOME)") \
1821N/A -exclude:$(shell $(GETMIXEDPATH) "$(EXCLUDELIST)") \
1821N/A $(JTREG_TEST_OPTIONS) \
1821N/A $(TESTDIRS) \
1821N/A ) ; $(BUNDLE_UP_AND_EXIT) \
1947N/A ) 2>&1 | $(TEE) $(ABS_TEST_OUTPUT_DIR)/output.txt ; $(TESTEXIT)
1008N/A
2402N/A# Rule that may change execute permissions on shared library files.
2402N/A# Files in repositories should never have execute permissions, but there
2402N/A# are some tests that have pre-built shared libraries, and these windows
2402N/A# dll files must have execute permission. Adding execute permission
2402N/A# may happen automatically on windows when using certain versions of mercurial
2402N/A# but it cannot be guaranteed. And blindly adding execute permission might
2402N/A# be seen as a mercurial 'change', so we avoid adding execute permission to
2402N/A# repository files. But testing from a plain source tree needs the chmod a+rx.
2402N/A# Used on select directories and applying the chmod to all shared libraries
2402N/A# not just dll files. On windows, this may not work with MKS if the files
2402N/A# were installed with CYGWIN unzip or untar (MKS chmod may not do anything).
2402N/A# And with CYGWIN and sshd service, you may need CYGWIN=ntsec for this to work.
2402N/A#
2402N/Ashared_library_permissions: $(SHARED_LIBRARY_DIR)
2402N/A if [ ! -d $(TEST_ROOT)/../.hg ] ; then \
2402N/A $(FIND) $< \( -name \*.dll -o -name \*.DLL -o -name \*.so \) \
2402N/A -exec $(CHMOD) a+rx {} \; ; \
2402N/A fi
2402N/A
2402N/APHONY_LIST += jtreg_tests shared_library_permissions
1008N/A
1008N/A################################################################
1008N/A
1008N/A# packtest
1008N/A
1008N/A# Expect JPRT to set JPRT_PACKTEST_HOME.
1008N/APACKTEST_HOME = /net/jprt-web.sfbay.sun.com/jprt/allproducts/packtest
1008N/Aifdef JPRT_PACKTEST_HOME
1008N/A PACKTEST_HOME = $(JPRT_PACKTEST_HOME)
1008N/Aendif
1008N/A
1008N/Apacktest: prep $(PACKTEST_HOME)/ptest $(PRODUCT_HOME)
1008N/A ( $(CD) $(PACKTEST_HOME) && \
1008N/A $(PACKTEST_HOME)/ptest \
1008N/A -t "$(PRODUCT_HOME)" \
1008N/A $(PACKTEST_STRESS_OPTION) \
1008N/A $(EXTRA_PACKTEST_OPTIONS) \
1008N/A -W $(ABS_TEST_OUTPUT_DIR) \
1008N/A $(JAVA_ARGS:%=-J %) \
1008N/A $(JAVA_VM_ARGS:%=-J %) \
1008N/A ) ; $(BUNDLE_UP_AND_EXIT)
1008N/A
1008N/Apacktest_stress: PACKTEST_STRESS_OPTION=-s
1008N/Apacktest_stress: packtest
1008N/A
1008N/APHONY_LIST += packtest packtest_stress
1008N/A
1008N/A################################################################
1008N/A
3887N/A# perftest to collect statistics
1254N/A
1254N/A# Expect JPRT to set JPRT_PACKTEST_HOME.
2402N/APERFTEST_HOME = $(TEST_ROOT)/perf
1254N/Aifdef JPRT_PERFTEST_HOME
1254N/A PERFTEST_HOME = $(JPRT_PERFTEST_HOME)
1254N/Aendif
1254N/A
1254N/Aperftest: ( $(PERFTEST_HOME)/perftest \
1254N/A -t $(shell $(GETMIXEDPATH) "$(PRODUCT_HOME)") \
1254N/A -w $(shell $(GETMIXEDPATH) "$(ABS_TEST_OUTPUT_DIR)") \
1254N/A -h $(PERFTEST_HOME) \
1254N/A ) ; $(BUNDLE_UP_AND_EXIT)
1254N/A
1254N/A
1254N/APHONY_LIST += perftest
1254N/A
1254N/A################################################################
1254N/A
1008N/A# vmsqe tests
1008N/A
1008N/A# Expect JPRT to set JPRT_VMSQE_HOME.
3866N/AVMSQE_HOME = $(SLASH_JAVA)/sqe/comp/vm/testbase/sqe/vm/current/build/latest/vm
1008N/Aifdef JPRT_VMSQE_HOME
1008N/A VMSQE_HOME = $(JPRT_VMSQE_HOME)
1008N/Aendif
1008N/A
1008N/A# Expect JPRT to set JPRT_RUNVMSQE_HOME.
1008N/ARUNVMSQE_HOME = /net/jprt-web.sfbay.sun.com/jprt/allproducts/runvmsqe
1008N/Aifdef JPRT_RUNVMSQE_HOME
1008N/A RUNVMSQE_HOME = $(JPRT_RUNVMSQE_HOME)
1008N/Aendif
1008N/A
1008N/A# Expect JPRT to set JPRT_TONGA3_HOME.
3866N/ATONGA3_HOME = $(SLASH_JAVA)/sqe/tools/gtee/harness/tonga
1008N/Aifdef JPRT_TONGA3_HOME
1008N/A TONGA3_HOME = $(JPRT_TONGA3_HOME)
1008N/Aendif
1008N/A
1008N/ARUNVMSQE_BIN = $(RUNVMSQE_HOME)/bin/runvmsqe
1008N/A
1008N/Avmsqe_tests: prep $(VMSQE_HOME)/vm $(TONGA3_HOME) $(RUNVMSQE_BIN) $(PRODUCT_HOME)
1008N/A $(RM) -r $(ABS_TEST_OUTPUT_DIR)/vmsqe
1008N/A ( $(CD) $(ABS_TEST_OUTPUT_DIR) && \
1008N/A $(RUNVMSQE_BIN) \
1008N/A -jdk "$(PRODUCT_HOME)" \
1008N/A -o "$(ABS_TEST_OUTPUT_DIR)/vmsqe" \
1008N/A -testbase "$(VMSQE_HOME)/vm" \
1008N/A -tonga "$(TONGA3_HOME)" \
1008N/A -tongajdk "$(ALT_BOOTDIR)" \
1008N/A $(JAVA_ARGS) \
1008N/A $(JAVA_VM_ARGS) \
1008N/A $(RUNVMSQE_TEST_OPTION) \
1008N/A $(EXTRA_RUNVMSQE_OPTIONS) \
1008N/A ) ; $(BUNDLE_UP_AND_EXIT)
1008N/A
1008N/Avmsqe_jdwp: RUNVMSQE_TEST_OPTION=-jdwp
1008N/Avmsqe_jdwp: vmsqe_tests
1008N/A
1008N/Avmsqe_jdi: RUNVMSQE_TEST_OPTION=-jdi
1008N/Avmsqe_jdi: vmsqe_tests
1008N/A
1008N/Avmsqe_jdb: RUNVMSQE_TEST_OPTION=-jdb
1008N/Avmsqe_jdb: vmsqe_tests
1008N/A
1008N/Avmsqe_quick-jdi: RUNVMSQE_TEST_OPTION=-quick-jdi
1008N/Avmsqe_quick-jdi: vmsqe_tests
1008N/A
1008N/Avmsqe_sajdi: RUNVMSQE_TEST_OPTION=-sajdi
1008N/Avmsqe_sajdi: vmsqe_tests
1008N/A
1008N/Avmsqe_jvmti: RUNVMSQE_TEST_OPTION=-jvmti
1008N/Avmsqe_jvmti: vmsqe_tests
1008N/A
1008N/Avmsqe_hprof: RUNVMSQE_TEST_OPTION=-hprof
1008N/Avmsqe_hprof: vmsqe_tests
1008N/A
1008N/Avmsqe_monitoring: RUNVMSQE_TEST_OPTION=-monitoring
1008N/Avmsqe_monitoring: vmsqe_tests
1008N/A
1008N/APHONY_LIST += vmsqe_jdwp vmsqe_jdi vmsqe_jdb vmsqe_quick-jdi vmsqe_sajdi \
1008N/A vmsqe_jvmti vmsqe_hprof vmsqe_monitoring vmsqe_tests
1008N/A
1008N/A################################################################
1008N/A
1008N/A# jck tests
0N/A
3866N/A# Default is to use jck 7 from /java/re
3866N/AJCK7_DEFAULT_HOME = $(SLASH_JAVA)/re/jck/7/promoted/latest/binaries
1008N/A
1008N/A# Expect JPRT to set JPRT_JCK7COMPILER_HOME.
3866N/AJCK7COMPILER_HOME = $(JCK7_DEFAULT_HOME)/JCK-compiler-7
1008N/Aifdef JPRT_JCK7COMPILER_HOME
3866N/A JCK7COMPILER_HOME = $(JPRT_JCK7COMPILER_HOME)/JCK-compiler-7
1008N/Aendif
1008N/A
1008N/A# Expect JPRT to set JPRT_JCK7RUNTIME_HOME.
3866N/AJCK7RUNTIME_HOME = $(JCK7_DEFAULT_HOME)/JCK-runtime-7
1008N/Aifdef JPRT_JCK7RUNTIME_HOME
3866N/A JCK7RUNTIME_HOME = $(JPRT_JCK7RUNTIME_HOME)/JCK-runtime-7
1008N/Aendif
1008N/A
1008N/A# Expect JPRT to set JPRT_JCK7DEVTOOLS_HOME.
3866N/AJCK7DEVTOOLS_HOME = $(JCK7_DEFAULT_HOME)/JCK-devtools-7
1008N/Aifdef JPRT_JCK7DEVTOOLS_HOME
3866N/A JCK7DEVTOOLS_HOME = $(JPRT_JCK7DEVTOOLS_HOME)/JCK-devtools-7
3866N/Aendif
3866N/A
3866N/A# The jtjck.jar utility to use to run the tests
3866N/AJTJCK_JAR = $(JCK_HOME)/lib/jtjck.jar
3866N/AJTJCK_JAVA_ARGS = -XX:MaxPermSize=256m -Xmx512m
5910N/AJTJCK_OPTIONS = -headless -v
3866N/A
3866N/A# Default tests to run
3866N/Aifndef JCK_COMPILER_TESTS
5910N/A JCK_COMPILER_TESTS =
3866N/Aendif
3866N/Aifndef JCK_RUNTIME_TESTS
5910N/A JCK_RUNTIME_TESTS =
3866N/Aendif
3866N/Aifndef JCK_DEVTOOLS_TESTS
5910N/A JCK_DEVTOOLS_TESTS =
1008N/Aendif
1008N/A
3866N/A# Generic rule used to run jck tests
3866N/A_generic_jck_tests: prep $(PRODUCT_HOME) $(EXCLUDELIST)
3866N/A @$(EXPAND) $(EXCLUDELIST) \
3866N/A | $(CUT) -d' ' -f1 \
3866N/A | $(SED) -e 's@^@Excluding: @'
3866N/A ( $(CD) $(ABS_TEST_OUTPUT_DIR) && \
3866N/A $(PRODUCT_HOME)/bin/java $(JTJCK_JAVA_ARGS) \
3866N/A -jar "$(JTJCK_JAR)" \
3866N/A $(JTJCK_OPTIONS) \
3866N/A -r:$(shell $(GETMIXEDPATH) "$(ABS_TEST_OUTPUT_DIR)")/JTreport \
3866N/A -w:$(shell $(GETMIXEDPATH) "$(ABS_TEST_OUTPUT_DIR)")/JTwork \
3866N/A -jdk:$(shell $(GETMIXEDPATH) "$(PRODUCT_HOME)") \
3866N/A $(TESTDIRS) \
3866N/A ) ; $(BUNDLE_UP_AND_EXIT)
1008N/A
3866N/A# JCK7 compiler tests
3866N/Ajck7compiler:
3866N/A $(MAKE) UNIQUE_DIR=$@ \
3866N/A JCK_HOME=$(JCK7COMPILER_HOME) \
3866N/A TESTDIRS="$(JCK_COMPILER_TESTS)" \
3866N/A _generic_jck_tests
1008N/A
3866N/A# JCK7 runtime tests
5910N/Ajck7runtime:
3866N/A $(MAKE) UNIQUE_DIR=$@ \
3866N/A JCK_HOME=$(JCK7RUNTIME_HOME) \
3866N/A TESTDIRS="$(JCK_RUNTIME_TESTS)" \
3866N/A _generic_jck_tests
1008N/A
3866N/A# JCK7 devtools tests
5910N/Ajck7devtools:
3866N/A $(MAKE) UNIQUE_DIR=$@ \
3866N/A JCK_HOME=$(JCK7DEVTOOLS_HOME) \
3866N/A TESTDIRS="$(JCK_DEVTOOLS_TESTS)" \
3866N/A _generic_jck_tests
1008N/A
3866N/A# Run all 3 sets of JCK7 tests
3866N/Ajck_all: jck7runtime jck7devtools jck7compiler
3866N/A
3866N/APHONY_LIST += jck_all _generic_jck_tests \
3866N/A jck7compiler jck7runtime jck7devtools
1008N/A
1008N/A################################################################
0N/A
0N/A# Phony targets (e.g. these are not filenames)
1008N/A.PHONY: all clean prep $(PHONY_LIST)
0N/A
1008N/A################################################################
1008N/A