102 JTREG_FAILURE_HANDLER_OPTIONS := \ 103 -timeoutHandlerDir:$(JTREG_FAILURE_HANDLER) \ 104 -observerDir:$(JTREG_FAILURE_HANDLER) \ 105 -timeoutHandler:jdk.test.failurehandler.jtreg.GatherProcessInfoTimeoutHandler \ 106 -observer:jdk.test.failurehandler.jtreg.GatherDiagnosticInfoObserver \ 107 -timeoutHandlerTimeout:0 108 endif 109 110 GTEST_LAUNCHER_DIRS := $(patsubst %/gtestLauncher, %, \ 111 $(wildcard $(TEST_IMAGE_DIR)/hotspot/gtest/*/gtestLauncher)) 112 GTEST_VARIANTS := $(strip $(patsubst $(TEST_IMAGE_DIR)/hotspot/gtest/%, %, \ 113 $(GTEST_LAUNCHER_DIRS))) 114 115 ifeq ($(TEST_OPTS_JCOV), true) 116 JCOV_OUTPUT_DIR := $(TEST_RESULTS_DIR)/jcov-output 117 JCOV_GRABBER_LOG := $(JCOV_OUTPUT_DIR)/grabber.log 118 JCOV_RESULT_FILE := $(JCOV_OUTPUT_DIR)/result.xml 119 JCOV_REPORT := $(JCOV_OUTPUT_DIR)/report 120 JCOV_MEM_OPTIONS := -Xms64m -Xmx4g 121 122 ifneq ($(JCOV_IMAGE_DIR), ) 123 # Replace our normal test JDK with the JCov image, if present. 124 JDK_UNDER_TEST := $(JCOV_IMAGE_DIR) 125 endif 126 127 JCOV_ENVIRONMENT := JAVA_TOOL_OPTIONS="$(JCOV_MEM_OPTIONS)" \ 128 _JAVA_OPTIONS="$(JCOV_MEM_OPTIONS)" 129 JTREG_JCOV_OPTIONS := -e:JAVA_TOOL_OPTIONS='$(JCOV_MEM_OPTIONS)' \ 130 -e:_JAVA_OPTIONS='$(JCOV_MEM_OPTIONS)' 131 endif 132 133 ################################################################################ 134 # Optionally create AOT libraries for specified modules before running tests. 135 # Note, this could not be done during JDK build time. 136 ################################################################################ 137 138 # Note, this could not be done during JDK build time. 139 140 # Parameter 1 is the name of the rule. 141 # 142 # Remaining parameters are named arguments. 143 # MODULE The module to generate a library for 144 # BIN Output directory in which to put the library 145 # VM_OPTIONS List of JVM arguments to use when creating library | 102 JTREG_FAILURE_HANDLER_OPTIONS := \ 103 -timeoutHandlerDir:$(JTREG_FAILURE_HANDLER) \ 104 -observerDir:$(JTREG_FAILURE_HANDLER) \ 105 -timeoutHandler:jdk.test.failurehandler.jtreg.GatherProcessInfoTimeoutHandler \ 106 -observer:jdk.test.failurehandler.jtreg.GatherDiagnosticInfoObserver \ 107 -timeoutHandlerTimeout:0 108 endif 109 110 GTEST_LAUNCHER_DIRS := $(patsubst %/gtestLauncher, %, \ 111 $(wildcard $(TEST_IMAGE_DIR)/hotspot/gtest/*/gtestLauncher)) 112 GTEST_VARIANTS := $(strip $(patsubst $(TEST_IMAGE_DIR)/hotspot/gtest/%, %, \ 113 $(GTEST_LAUNCHER_DIRS))) 114 115 ifeq ($(TEST_OPTS_JCOV), true) 116 JCOV_OUTPUT_DIR := $(TEST_RESULTS_DIR)/jcov-output 117 JCOV_GRABBER_LOG := $(JCOV_OUTPUT_DIR)/grabber.log 118 JCOV_RESULT_FILE := $(JCOV_OUTPUT_DIR)/result.xml 119 JCOV_REPORT := $(JCOV_OUTPUT_DIR)/report 120 JCOV_MEM_OPTIONS := -Xms64m -Xmx4g 121 122 # Replace our normal test JDK with the JCov image, if present. 123 JDK_UNDER_TEST := $(JCOV_IMAGE_DIR) 124 125 JCOV_ENVIRONMENT := JAVA_TOOL_OPTIONS="$(JCOV_MEM_OPTIONS)" \ 126 _JAVA_OPTIONS="$(JCOV_MEM_OPTIONS)" 127 JTREG_JCOV_OPTIONS := -e:JAVA_TOOL_OPTIONS='$(JCOV_MEM_OPTIONS)' \ 128 -e:_JAVA_OPTIONS='$(JCOV_MEM_OPTIONS)' 129 endif 130 131 ################################################################################ 132 # Optionally create AOT libraries for specified modules before running tests. 133 # Note, this could not be done during JDK build time. 134 ################################################################################ 135 136 # Note, this could not be done during JDK build time. 137 138 # Parameter 1 is the name of the rule. 139 # 140 # Remaining parameters are named arguments. 141 # MODULE The module to generate a library for 142 # BIN Output directory in which to put the library 143 # VM_OPTIONS List of JVM arguments to use when creating library |