Makefile revision 2080
#
# 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.
#
# 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 Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
# or visit www.oracle.com if you need additional information or have any
# questions.
#
#
#
# Makefile to run various jdk tests
#
SLASH_JAVA = /java
SLASH_JAVA = /java
SLASH_JAVA = J:
else
else
else
SLASH_JAVA = $(ALT_SLASH_JAVA)
# 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)
# Expect JPRT to set JAVA_ARGS (e.g. -server etc.)
JAVA_OPTIONS = $(JAVA_ARGS)
# 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)
################################################################
# 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
JTREG_TESTDIRS = $(TESTDIRS)
# Default JTREG to run (win32 script works for everybody)
# Option to tell jtreg to not run tests marked with "ignore"
JTREG_KEY_OPTION = -k:!ignore
else
JTREG_KEY_OPTION = -k:\!ignore
#EXTRA_JTREG_OPTIONS =
$(JTREG_KEY_OPTION) \
$(EXTRA_JTREG_OPTIONS) \
-r:$(ABS_TEST_OUTPUT_DIR)/JTreport \
-w:$(ABS_TEST_OUTPUT_DIR)/JTwork \
-jdk:$(PRODUCT_HOME) \
$(JAVA_OPTIONS:%=-vmoption:%) \
$(JTREG_TESTDIRS) \
|| $(BUNDLE_UP_FAILED)
$(BUNDLE_UP)
################################################################
# clienttest (make sure various basic java client options work)
################################################################
# servertest (make sure various basic java server options work)
################################################################
# packtest
# Expect JPRT to set JPRT_PACKTEST_HOME.
#EXTRA_PACKTEST_OPTIONS =
) || $(BUNDLE_UP_FAILED)
$(BUNDLE_UP)
################################################################
# Phony targets (e.g. these are not filenames)
################################################################