Makefile revision 618
19a258565a4d24e5a0af62f626943ac9b898d957vboxsync#
6dd8f5023a9ba7588212331db90059553136fe33vboxsync# Copyright (c) 2010, 2012, Oracle and/or its affiliates. All rights reserved.
99be02f9e15a3ca61b6a7c207cc7eb68dbd04817vboxsync# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
19a258565a4d24e5a0af62f626943ac9b898d957vboxsync#
99be02f9e15a3ca61b6a7c207cc7eb68dbd04817vboxsync# This code is free software; you can redistribute it and/or modify it
99be02f9e15a3ca61b6a7c207cc7eb68dbd04817vboxsync# under the terms of the GNU General Public License version 2 only, as
19a258565a4d24e5a0af62f626943ac9b898d957vboxsync# published by the Free Software Foundation. Oracle designates this
c58f1213e628a545081c70e26c6b67a841cff880vboxsync# particular file as subject to the "Classpath" exception as provided
19a258565a4d24e5a0af62f626943ac9b898d957vboxsync# by Oracle in the LICENSE file that accompanied this code.
19a258565a4d24e5a0af62f626943ac9b898d957vboxsync#
19a258565a4d24e5a0af62f626943ac9b898d957vboxsync# This code is distributed in the hope that it will be useful, but WITHOUT
19a258565a4d24e5a0af62f626943ac9b898d957vboxsync# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
19a258565a4d24e5a0af62f626943ac9b898d957vboxsync# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
19a258565a4d24e5a0af62f626943ac9b898d957vboxsync# version 2 for more details (a copy is included in the LICENSE file that
19a258565a4d24e5a0af62f626943ac9b898d957vboxsync# accompanied this code).
19a258565a4d24e5a0af62f626943ac9b898d957vboxsync#
19a258565a4d24e5a0af62f626943ac9b898d957vboxsync# You should have received a copy of the GNU General Public License version
19a258565a4d24e5a0af62f626943ac9b898d957vboxsync# 2 along with this work; if not, write to the Free Software Foundation,
19a258565a4d24e5a0af62f626943ac9b898d957vboxsync# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
19a258565a4d24e5a0af62f626943ac9b898d957vboxsync#
19a258565a4d24e5a0af62f626943ac9b898d957vboxsync# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
19a258565a4d24e5a0af62f626943ac9b898d957vboxsync# or visit www.oracle.com if you need additional information or have any
c1b76913eb226361b0f57efd4dc45072db194218vboxsync# questions.
2f0d866e126dd288169fed591c259c1c6b4016e5vboxsync#
19a258565a4d24e5a0af62f626943ac9b898d957vboxsync
19a258565a4d24e5a0af62f626943ac9b898d957vboxsync#
19a258565a4d24e5a0af62f626943ac9b898d957vboxsync# Makefile to run tests from multiple sibling directories
19a258565a4d24e5a0af62f626943ac9b898d957vboxsync#
19a258565a4d24e5a0af62f626943ac9b898d957vboxsync
19a258565a4d24e5a0af62f626943ac9b898d957vboxsync# Root of the forest that was built
19a258565a4d24e5a0af62f626943ac9b898d957vboxsyncTOPDIR=..
19a258565a4d24e5a0af62f626943ac9b898d957vboxsync
19a258565a4d24e5a0af62f626943ac9b898d957vboxsync# This makefile depends on the availability of sibling directories.
715e49c31b15c23c17a9ce3be42a75e7c48d4b78vboxsyncLANGTOOLS_DIR=$(TOPDIR)/langtools
19a258565a4d24e5a0af62f626943ac9b898d957vboxsyncJDK_DIR=$(TOPDIR)/jdk
19a258565a4d24e5a0af62f626943ac9b898d957vboxsync
19a258565a4d24e5a0af62f626943ac9b898d957vboxsync# Macro to run a test target in a subdir
dbc4cb7b07245195230a32d42f56d7edf888fcadvboxsyncdefine SUBDIR_TEST # subdirectory target
19a258565a4d24e5a0af62f626943ac9b898d957vboxsyncif [ -d $1 ] ; then \
19a258565a4d24e5a0af62f626943ac9b898d957vboxsync if [ -r $1/test/Makefile ] ; then \
19a258565a4d24e5a0af62f626943ac9b898d957vboxsync echo "$(MAKE) -C $1/test $2" ; \
19a258565a4d24e5a0af62f626943ac9b898d957vboxsync $(MAKE) -C $1/test $2 ; \
19a258565a4d24e5a0af62f626943ac9b898d957vboxsync else \
19a258565a4d24e5a0af62f626943ac9b898d957vboxsync echo "ERROR: File does not exist: $1/test/Makefile"; \
19a258565a4d24e5a0af62f626943ac9b898d957vboxsync exit 1; \
19a258565a4d24e5a0af62f626943ac9b898d957vboxsync fi; \
19a258565a4d24e5a0af62f626943ac9b898d957vboxsyncelse \
19a258565a4d24e5a0af62f626943ac9b898d957vboxsync echo "WARNING: No testing done, directory does not exist: $1"; \
19a258565a4d24e5a0af62f626943ac9b898d957vboxsyncfi
19a258565a4d24e5a0af62f626943ac9b898d957vboxsyncendef
bd9e09b620b86e5e947ad66a3b6a4d9bf4dfe581vboxsync
19a258565a4d24e5a0af62f626943ac9b898d957vboxsync# Test target list for langtools repository
19a258565a4d24e5a0af62f626943ac9b898d957vboxsyncLANGTOOLS_TEST_LIST = langtools_jtreg
19a258565a4d24e5a0af62f626943ac9b898d957vboxsync
19a258565a4d24e5a0af62f626943ac9b898d957vboxsync# Test target list for jdk repository
19a258565a4d24e5a0af62f626943ac9b898d957vboxsyncJDK_TEST_LIST = \
19a258565a4d24e5a0af62f626943ac9b898d957vboxsync jdk_beans1 jdk_beans2 jdk_beans3 \
6dd8f5023a9ba7588212331db90059553136fe33vboxsync jdk_io \
43747b1f0bc8302a238fb35e55857a5e9aa1933dvboxsync jdk_lang \
dbc4cb7b07245195230a32d42f56d7edf888fcadvboxsync jdk_management \
43747b1f0bc8302a238fb35e55857a5e9aa1933dvboxsync jdk_jmx \
19a258565a4d24e5a0af62f626943ac9b898d957vboxsync jdk_math \
19a258565a4d24e5a0af62f626943ac9b898d957vboxsync jdk_other \
715e49c31b15c23c17a9ce3be42a75e7c48d4b78vboxsync jdk_net \
19a258565a4d24e5a0af62f626943ac9b898d957vboxsync jdk_nio \
19a258565a4d24e5a0af62f626943ac9b898d957vboxsync jdk_security1 jdk_security2 jdk_security3 \
19a258565a4d24e5a0af62f626943ac9b898d957vboxsync jdk_sound \
19a258565a4d24e5a0af62f626943ac9b898d957vboxsync jdk_text \
19a258565a4d24e5a0af62f626943ac9b898d957vboxsync jdk_tools \
19a258565a4d24e5a0af62f626943ac9b898d957vboxsync jdk_jdi \
19a258565a4d24e5a0af62f626943ac9b898d957vboxsync jdk_jfr \
cc5db764b0331d17575b3f384d29e1c74970e62fvboxsync jdk_util
19a258565a4d24e5a0af62f626943ac9b898d957vboxsync
19a258565a4d24e5a0af62f626943ac9b898d957vboxsync# These tests need a DISPLAY and can create window interaction complications
19a258565a4d24e5a0af62f626943ac9b898d957vboxsyncJDK_TEST_LIST2 = \
19a258565a4d24e5a0af62f626943ac9b898d957vboxsync jdk_awt \
19a258565a4d24e5a0af62f626943ac9b898d957vboxsync jdk_rmi \
19a258565a4d24e5a0af62f626943ac9b898d957vboxsync jdk_swing
19a258565a4d24e5a0af62f626943ac9b898d957vboxsync
19a258565a4d24e5a0af62f626943ac9b898d957vboxsync# These are the current jck test targets in the jdk repository
e43535ace2499e7f8ef8822186047979bd58d464vboxsyncJDK_JCK7_LIST = jck7devtools jck7compiler jck7runtime
19a258565a4d24e5a0af62f626943ac9b898d957vboxsync
19a258565a4d24e5a0af62f626943ac9b898d957vboxsync# 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)
################################################################