42 endef 43 44 # Default test target (core) 45 default: jdk_core langtools_jtreg jaxp_all 46 47 # All testing 48 all: jdk_all langtools_all jaxp_all 49 50 ifeq ($(TEST_JOBS), 0) 51 ifeq ($(shell $(EXPR) $(JOBS) \> 50), 1) 52 # JTReg cannot handle more than 50 in concurrency 53 JDK_TEST_JOBS=50 54 else 55 JDK_TEST_JOBS=$(JOBS) 56 endif 57 else 58 JDK_TEST_JOBS=$(TEST_JOBS) 59 endif 60 # Test targets 61 langtools_% : 62 @$(NO_STOPPING)$(call SUBDIR_TEST, langtools, CONCURRENCY=$(JDK_TEST_JOBS) \ 63 JT_JAVA=$(PRODUCT_HOME) JTREG_HOME=$(JT_HOME) \ 64 TEST="$(subst langtools_,,$@)" $(subst langtools_,,$@)) 65 66 jdk_% core_%s svc_%: 67 @$(NO_STOPPING)$(call SUBDIR_TEST, jdk, CONCURRENCY=$(JDK_TEST_JOBS) TEST="$@" $@) 68 69 jaxp_%: 70 @$(NO_STOPPING)$(call SUBDIR_TEST, jaxp, CONCURRENCY=$(JDK_TEST_JOBS) TEST="$@" $@) 71 72 nashorn_%: 73 @$(NO_STOPPING)$(call SUBDIR_TEST, nashorn, CONCURRENCY=$(JDK_TEST_JOBS) TEST="$@" $@) 74 75 SUB_MAKE_ARGS := 76 ifneq ($(TEST_JOBS), 0) 77 ifneq ($(TEST_JOBS), ) 78 SUB_MAKE_ARGS += CONCURRENCY=$(TEST_JOBS) 79 endif 80 endif 81 hotspot_%: 82 @$(NO_STOPPING)$(call SUBDIR_TEST, hotspot/jtreg, $(SUB_MAKE_ARGS) TEST="$@" $@) 83 84 # 85 # jtreg_tests 86 # 87 # Invocation: 88 # 89 # make jtreg_tests TESTDIRS=<test-dirs> TEST_SELECTION=<path to test or jtreg group> TEST_OUTPUT_DIR=<path> 90 # 91 # where <test-dirs> is something like '../<component>/test/runtime', 92 # <component> in turn being one of the top level directories (for 93 # example 'hotspot'). | 42 endef 43 44 # Default test target (core) 45 default: jdk_core langtools_jtreg jaxp_all 46 47 # All testing 48 all: jdk_all langtools_all jaxp_all 49 50 ifeq ($(TEST_JOBS), 0) 51 ifeq ($(shell $(EXPR) $(JOBS) \> 50), 1) 52 # JTReg cannot handle more than 50 in concurrency 53 JDK_TEST_JOBS=50 54 else 55 JDK_TEST_JOBS=$(JOBS) 56 endif 57 else 58 JDK_TEST_JOBS=$(TEST_JOBS) 59 endif 60 # Test targets 61 langtools_% : 62 @$(NO_STOPPING)$(call SUBDIR_TEST, langtools, \ 63 $(if $(JDK_TEST_JOBS), CONCURRENCY=$(JDK_TEST_JOBS)) \ 64 JT_JAVA=$(PRODUCT_HOME) JTREG_HOME=$(JT_HOME) \ 65 TEST="$(subst langtools_,,$@)" $(subst langtools_,,$@)) 66 67 jdk_% core_%s svc_%: 68 @$(NO_STOPPING)$(call SUBDIR_TEST, jdk, \ 69 $(if $(JDK_TEST_JOBS), CONCURRENCY=$(JDK_TEST_JOBS)) TEST="$@" $@) 70 71 jaxp_%: 72 @$(NO_STOPPING)$(call SUBDIR_TEST, jaxp, \ 73 $(if $(JDK_TEST_JOBS), CONCURRENCY=$(JDK_TEST_JOBS)) TEST="$@" $@) 74 75 nashorn_%: 76 @$(NO_STOPPING)$(call SUBDIR_TEST, nashorn, \ 77 $(if $(JDK_TEST_JOBS), CONCURRENCY=$(JDK_TEST_JOBS)) TEST="$@" $@) 78 79 SUB_MAKE_ARGS := 80 ifneq ($(TEST_JOBS), 0) 81 ifneq ($(TEST_JOBS), ) 82 SUB_MAKE_ARGS += CONCURRENCY=$(TEST_JOBS) 83 endif 84 endif 85 hotspot_%: 86 @$(NO_STOPPING)$(call SUBDIR_TEST, hotspot/jtreg, $(SUB_MAKE_ARGS) TEST="$@" $@) 87 88 # 89 # jtreg_tests 90 # 91 # Invocation: 92 # 93 # make jtreg_tests TESTDIRS=<test-dirs> TEST_SELECTION=<path to test or jtreg group> TEST_OUTPUT_DIR=<path> 94 # 95 # where <test-dirs> is something like '../<component>/test/runtime', 96 # <component> in turn being one of the top level directories (for 97 # example 'hotspot'). |