annotate test/Makefile @ 25662:056656d69979

8051399: Fix for JDK-8043071 breaks dev build Reviewed-by: xuelei
author weijun
date Sat, 19 Jul 2014 11:22:08 +0800
parents 9f542d8601a8
children 2842cbf0da97
rev   line source
ohair@4947 1 #
ohair@8917 2 # Copyright (c) 2010, 2011, Oracle and/or its affiliates. All rights reserved.
ohair@4947 3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
ohair@4947 4 #
ohair@4947 5 # This code is free software; you can redistribute it and/or modify it
ohair@4947 6 # under the terms of the GNU General Public License version 2 only, as
ohair@5499 7 # published by the Free Software Foundation. Oracle designates this
ohair@4947 8 # particular file as subject to the "Classpath" exception as provided
ohair@5499 9 # by Oracle in the LICENSE file that accompanied this code.
ohair@4947 10 #
ohair@4947 11 # This code is distributed in the hope that it will be useful, but WITHOUT
ohair@4947 12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
ohair@4947 13 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
ohair@4947 14 # version 2 for more details (a copy is included in the LICENSE file that
ohair@4947 15 # accompanied this code).
ohair@4947 16 #
ohair@4947 17 # You should have received a copy of the GNU General Public License version
ohair@4947 18 # 2 along with this work; if not, write to the Free Software Foundation,
ohair@4947 19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
ohair@4947 20 #
ohair@5499 21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
ohair@5499 22 # or visit www.oracle.com if you need additional information or have any
ohair@5499 23 # questions.
ohair@4947 24 #
ohair@4947 25
ohair@4947 26 #
ohair@4947 27 # Makefile to run tests from multiple sibling directories
ohair@4947 28 #
ohair@4947 29
ohair@4947 30 # Root of the forest that was built
ohair@4947 31 TOPDIR=..
ohair@4947 32
ohair@4947 33 # This makefile depends on the availability of sibling directories.
ohair@4947 34 LANGTOOLS_DIR=$(TOPDIR)/langtools
ohair@4947 35 JDK_DIR=$(TOPDIR)/jdk
mikael@24419 36 HOTSPOT_DIR=$(TOPDIR)/hotspot
ohair@4947 37
ohair@4947 38 # Macro to run a test target in a subdir
ohair@4947 39 define SUBDIR_TEST # subdirectory target
ohair@4947 40 if [ -d $1 ] ; then \
ohair@4947 41 if [ -r $1/test/Makefile ] ; then \
mduigou@15577 42 echo "$(MAKE) -k -C $1/test $2" ; \
mduigou@15577 43 $(MAKE) -k -C $1/test $2 ; \
ohair@4947 44 else \
ohair@4947 45 echo "ERROR: File does not exist: $1/test/Makefile"; \
ohair@5115 46 exit 1; \
ohair@4947 47 fi; \
ohair@4947 48 else \
ohair@4947 49 echo "WARNING: No testing done, directory does not exist: $1"; \
ohair@4947 50 fi
ohair@4947 51 endef
ohair@4947 52
mduigou@15577 53 # Default test target (core)
mduigou@19520 54 default: jdk_core langtools_jtreg
ohair@11242 55
ohair@11242 56 # All testing
mduigou@19520 57 all: jdk_all langtools_all
ohair@4947 58
ohair@4947 59 # Test targets
mduigou@19520 60 langtools_% :
mduigou@19522 61 @$(NO_STOPPING)$(call SUBDIR_TEST, $(LANGTOOLS_DIR), JT_JAVA=$(PRODUCT_HOME) JTREG_HOME=$(JT_HOME) TEST="$(subst langtools_,,$@)" $(subst langtools_,,$@))
mduigou@15577 62
alanb@21760 63 jdk_% core_%s svc_%:
mduigou@19520 64 @$(NO_STOPPING)$(call SUBDIR_TEST, $(JDK_DIR), TEST="$@" $@)
ohair@4947 65
mikael@24419 66 hotspot_%:
mikael@24419 67 @$(NO_STOPPING)$(call SUBDIR_TEST, $(HOTSPOT_DIR), TEST="$@" $@)
mikael@24419 68
ohair@4947 69 ################################################################
ohair@4947 70
ohair@4947 71 # Phony targets (e.g. these are not filenames)
mduigou@19520 72 .PHONY: all clean
ohair@4947 73
ohair@4947 74 ################################################################