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