0N/A#
4680N/A# Copyright (c) 2010, 2012, Oracle and/or its affiliates. All rights reserved.
0N/A# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
0N/A#
0N/A# This code is free software; you can redistribute it and/or modify it
0N/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
0N/A# particular file as subject to the "Classpath" exception as provided
2362N/A# by Oracle in the LICENSE file that accompanied this code.
0N/A#
0N/A# This code is distributed in the hope that it will be useful, but WITHOUT
0N/A# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
0N/A# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
0N/A# version 2 for more details (a copy is included in the LICENSE file that
0N/A# accompanied this code).
0N/A#
0N/A# You should have received a copy of the GNU General Public License version
0N/A# 2 along with this work; if not, write to the Free Software Foundation,
0N/A# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
0N/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.
0N/A#
0N/A
0N/A#
0N/A# Makefile to run tests from multiple sibling directories
0N/A#
0N/A
0N/A# Root of the forest that was built
0N/ATOPDIR=..
0N/A
0N/A# This makefile depends on the availability of sibling directories.
0N/ALANGTOOLS_DIR=$(TOPDIR)/langtools
0N/AJDK_DIR=$(TOPDIR)/jdk
0N/A
0N/A# Macro to run a test target in a subdir
0N/Adefine SUBDIR_TEST # subdirectory target
0N/Aif [ -d $1 ] ; then \
0N/A if [ -r $1/test/Makefile ] ; then \
0N/A echo "$(MAKE) -C $1/test $2" ; \
0N/A $(MAKE) -C $1/test $2 ; \
0N/A else \
0N/A echo "ERROR: File does not exist: $1/test/Makefile"; \
0N/A exit 1; \
0N/A fi; \
4632N/Aelse \
4680N/A echo "WARNING: No testing done, directory does not exist: $1"; \
4680N/Afi
0N/Aendef
4680N/A
4680N/A# Test target list for langtools repository
4680N/ALANGTOOLS_TEST_LIST = langtools_jtreg
4680N/A
4680N/A# Test target list for jdk repository
4680N/AJDK_TEST_LIST = \
4680N/A jdk_beans1 jdk_beans2 jdk_beans3 \
4680N/A jdk_io \
4680N/A jdk_lang \
4680N/A jdk_management \
0N/A jdk_jmx \
1772N/A jdk_math \
4680N/A jdk_other \
4680N/A jdk_net \
4680N/A jdk_nio \
4680N/A jdk_security1 jdk_security2 jdk_security3 jdk_security4 \
4680N/A jdk_sound \
4680N/A jdk_text \
4680N/A jdk_tools \
4680N/A jdk_jdi \
0N/A jdk_jfr \
0N/A jdk_util
0N/A
0N/A# These tests need a DISPLAY and can create window interaction complications
4680N/AJDK_TEST_LIST2 = \
4680N/A jdk_awt \
4680N/A jdk_rmi \
4680N/A jdk_swing
4680N/A
4680N/A# These are the current jck test targets in the jdk repository
4632N/AJDK_JCK7_LIST = jck7devtools jck7compiler jck7runtime
4632N/A
4680N/A# Default test target (everything)
4680N/Aall: $(JDK_TEST_LIST) $(LANGTOOLS_TEST_LIST)
4680N/A
4680N/A# Test targets
4680N/A$(LANGTOOLS_TEST_LIST):
4680N/A @$(NO_STOPPING)$(call SUBDIR_TEST, $(LANGTOOLS_DIR), $(subst langtools_,,$@))
4680N/A$(JDK_TEST_LIST) $(JDK_TEST_LIST2) $(JDK_JCK7_LIST):
0N/A @$(NO_STOPPING)$(call SUBDIR_TEST, $(JDK_DIR), $@)
4680N/A
4680N/Aclean:
4680N/A
4680N/A################################################################
4680N/A
4680N/A# Phony targets (e.g. these are not filenames)
4680N/A.PHONY: all clean \
4680N/A $(JDK_TEST_LIST) $(JDK_TEST_LIST2) $(JDK_JCK7_LIST) \
4680N/A $(LANGTOOLS_TEST_LIST)
4680N/A
4680N/A################################################################
4680N/A
4680N/A