Makefile revision 542
0N/A#
0N/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
0N/A# published by the Free Software Foundation. Oracle designates this
0N/A# particular file as subject to the "Classpath" exception as provided
0N/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#
0N/A# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
0N/A# or visit www.oracle.com if you need additional information or have any
0N/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; \
0N/Aelse \
0N/A echo "WARNING: No testing done, directory does not exist: $1"; \
0N/Afi
0N/Aendef
0N/A
0N/A# Test target list for langtools repository
0N/ALANGTOOLS_TEST_LIST = langtools_jtreg
0N/A
0N/A# Test target list for jdk repository
0N/AJDK_TEST_LIST = \
0N/A jdk_beans1 jdk_beans2 jdk_beans3 \
0N/A jdk_io \
0N/A jdk_lang \
0N/A jdk_management \
0N/A jdk_jmx \
0N/A jdk_math \
0N/A jdk_other \
0N/A jdk_net \
0N/A jdk_nio \
0N/A jdk_security1 jdk_security2 jdk_security3 \
0N/A jdk_sound \
0N/A jdk_text \
0N/A jdk_tools \
0N/A jdk_jdi \
jdk_jfr \
jdk_util
# These tests need a DISPLAY and can create window interaction complications
JDK_TEST_LIST2 = \
jdk_awt \
jdk_rmi \
jdk_swing
# These are the current jck test targets in the jdk repository
JDK_JCK7_LIST = jck7devtools jck7compiler jck7runtime
# Default test target (everything)
all: $(JDK_TEST_LIST) $(LANGTOOLS_TEST_LIST)
# Test targets
$(LANGTOOLS_TEST_LIST):
@$(NO_STOPPING)$(call SUBDIR_TEST, $(LANGTOOLS_DIR), $(subst langtools_,,$@))
$(JDK_TEST_LIST) $(JDK_TEST_LIST2) $(JDK_JCK7_LIST):
@$(NO_STOPPING)$(call SUBDIR_TEST, $(JDK_DIR), $@)
clean:
################################################################
# Phony targets (e.g. these are not filenames)
.PHONY: all clean \
$(JDK_TEST_LIST) $(JDK_TEST_LIST2) $(JDK_JCK7_LIST) \
$(LANGTOOLS_TEST_LIST)
################################################################