Makefile revision 579
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync# Copyright 1995-2009 Sun Microsystems, Inc. All Rights Reserved.
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync# This code is free software; you can redistribute it and/or modify it
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync# under the terms of the GNU General Public License version 2 only, as
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync# published by the Free Software Foundation.
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync# This code is distributed in the hope that it will be useful, but WITHOUT
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync# version 2 for more details (a copy is included in the LICENSE file that
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync# accompanied this code).
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync# You should have received a copy of the GNU General Public License version
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync# 2 along with this work; if not, write to the Free Software Foundation,
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync# CA 95054 USA or visit www.sun.com if you need additional information or
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync# have any questions.
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync# Makefile to run various jdk tests
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync# Get OS/ARCH specifics
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync# Utilities used
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync# Root of this test area (important to use full paths in some places)
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync# Root of all test results
c679f5c447cd6925763c50493cd83bd9aa032d17vboxsyncABS_BUILD_ROOT = $(TEST_ROOT)/../build/$(PLATFORM)-$(ARCH)
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync# Expect JPRT to set PRODUCT_HOME (the product or jdk in this case to test)
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync # Try to use j2sdk-image if it exists
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync# Expect JPRT to set JAVA_ARGS (e.g. -server etc.)
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync# Expect JPRT to set JPRT_ARCHIVE_BUNDLE (path to zip bundle for results)
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsyncARCHIVE_BUNDLE = $(ABS_TEST_OUTPUT_DIR)/ARCHIVE_BUNDLE.zip
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync# How to create the test bundle (pass or fail, we want to create this)
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsyncBUNDLE_UP = ( $(MKDIR) -p `dirname $(ARCHIVE_BUNDLE)` \
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsyncBUNDLE_UP_FAILED = ( exitCode=$$? && $(BUNDLE_UP) && exit $${exitCode} )
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync################################################################
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync# Default make rule (runs jtreg_tests)
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync# Prep for output
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync################################################################
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync# jtreg tests
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync# Expect JT_HOME to be set for jtreg tests. (home for jtreg)
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsyncJT_HOME = $(SLASH_JAVA)/re/jtreg/4.0/promoted/latest/binaries/jtreg
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync# Expect JPRT to set TESTDIRS to the jtreg test dirs
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync# Default JTREG to run (win32 script works for everybody)
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync# Option to tell jtreg to not run tests marked with "ignore"
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync#EXTRA_JTREG_OPTIONS =
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsyncjtreg_tests: prep $(JT_HOME) $(PRODUCT_HOME) $(JTREG)
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync################################################################
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync# Expect JPRT to set JPRT_PACKTEST_HOME.
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsyncPACKTEST_HOME = /net/jprt-web.sfbay.sun.com/jprt/allproducts/packtest
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync#EXTRA_PACKTEST_OPTIONS =
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsyncpacktest: prep $(PACKTEST_HOME)/ptest $(PRODUCT_HOME)
# Phony targets (e.g. these are not filenames)