< prev index next >

make/RunTests.gmk

Print this page




 864   ifneq ($$($1_JTREG_NATIVEPATH), )
 865     $1_JTREG_BASIC_OPTIONS += -nativepath:$$($1_JTREG_NATIVEPATH)
 866   endif
 867 
 868   ifneq ($$($1_JTREG_PROBLEM_LIST), )
 869     $1_JTREG_BASIC_OPTIONS += $$(addprefix -exclude:, $$($1_JTREG_PROBLEM_LIST))
 870   endif
 871 
 872   ifneq ($$(JTREG_EXTRA_PROBLEM_LISTS), )
 873     # Accept both absolute paths as well as relative to the current test root.
 874     $1_JTREG_BASIC_OPTIONS += $$(addprefix -exclude:, $$(wildcard \
 875         $$(JTREG_EXTRA_PROBLEM_LISTS) \
 876         $$(addprefix $$($1_TEST_ROOT)/, $$(JTREG_EXTRA_PROBLEM_LISTS)) \
 877     ))
 878   endif
 879 
 880   ifneq ($$(JIB_HOME), )
 881     $1_JTREG_BASIC_OPTIONS += -e:JIB_HOME=$$(JIB_HOME)
 882   endif
 883 
 884   $1_JTREG_BASIC_OPTIONS += -e:TEST_IMAGE_DIR=$(TEST_IMAGE_DIR)
 885   $1_JTREG_BASIC_OPTIONS += -e:TEST_IMAGE_GRAAL_DIR=$(TEST_IMAGE_DIR)/hotspot/jtreg/graal
 886 
 887   ifneq ($$(JTREG_FAILURE_HANDLER_OPTIONS), )
 888     $1_JTREG_LAUNCHER_OPTIONS += -Djava.library.path="$(JTREG_FAILURE_HANDLER_DIR)"
 889   endif
 890 
 891   ifneq ($$(JTREG_KEYWORDS), )
 892     # The keywords string may contain problematic characters and may be quoted
 893     # already when it arrives here. Remove any existing quotes and replace them
 894     # with one set of single quotes.
 895     $1_JTREG_KEYWORDS := \
 896         $$(strip $$(subst $$(SQUOTE),,$$(subst $$(DQUOTE),,$$(JTREG_KEYWORDS))))
 897     ifneq ($$($1_JTREG_KEYWORDS), )
 898       $1_JTREG_BASIC_OPTIONS += -k:'$$($1_JTREG_KEYWORDS)'
 899     endif
 900   endif
 901 
 902   ifneq ($$(JTREG_AOT_MODULES), )
 903     $$(eval $$(call SetupAot, $1, \
 904         MODULES := $$(JTREG_AOT_MODULES), \
 905         VM_OPTIONS := $$(JTREG_VM_OPTIONS) $$(JTREG_JAVA_OPTIONS), \


1178 
1179 ifeq ($(TEST_OPTS_JCOV), true)
1180 
1181   jcov-do-start-grabber:
1182         $(call MakeDir, $(JCOV_OUTPUT_DIR))
1183         if $(JAVA) -jar $(JCOV_HOME)/lib/jcov.jar GrabberManager -status 1>/dev/null 2>&1 ; then \
1184           $(JAVA) -jar $(JCOV_HOME)/lib/jcov.jar GrabberManager -stop -stoptimeout 3600 ; \
1185         fi
1186         $(JAVA) -Xmx4g -jar $(JCOV_HOME)/lib/jcov.jar Grabber -v -t \
1187             $(JCOV_IMAGE_DIR)/template.xml -o $(JCOV_RESULT_FILE) \
1188             1>$(JCOV_GRABBER_LOG) 2>&1 &
1189 
1190   jcov-start-grabber: jcov-do-start-grabber
1191         $(call LogWarn, Starting JCov Grabber...)
1192         $(JAVA) -jar $(JCOV_HOME)/lib/jcov.jar GrabberManager -t 600 -wait
1193 
1194   jcov-stop-grabber:
1195         $(call LogWarn, Stopping JCov Grabber...)
1196         $(JAVA) -jar $(JCOV_HOME)/lib/jcov.jar GrabberManager -stop -stoptimeout 3600
1197 
1198   JCOV_REPORT_TITLE := JDK code coverage report<br/>
1199   ifneq ($(JCOV_FILTERS), )
1200     JCOV_REPORT_TITLE += Code filters: $(JCOV_FILTERS)<br>
1201   endif
1202   JCOV_REPORT_TITLE += Tests: $(TEST)
1203 
1204   jcov-gen-report: jcov-stop-grabber
1205         $(call LogWarn, Generating JCov report ...)
1206         $(JAVA) -Xmx4g -jar $(JCOV_HOME)/lib/jcov.jar RepGen -sourcepath \
1207             `$(ECHO) $(TOPDIR)/src/*/share/classes/ | $(TR) ' ' ':'` -fmt html \
1208             $(JCOV_FILTERS) \
1209             -mainReportTitle "$(JCOV_REPORT_TITLE)" \
1210             -o $(JCOV_REPORT) $(JCOV_RESULT_FILE)
1211 
1212   TARGETS += jcov-do-start-grabber jcov-start-grabber jcov-stop-grabber \
1213       jcov-gen-report
1214 
1215   # Hook this into the framework at appropriate places
1216   pre-run-test: jcov-start-grabber
1217 
1218   post-run-test: jcov-gen-report
1219 
1220   jcov-gen-report: run-all-tests
1221 
1222 endif
1223 
1224 ################################################################################
1225 
1226 all: run-test
1227 
1228 .PHONY: default all $(TARGETS)


 864   ifneq ($$($1_JTREG_NATIVEPATH), )
 865     $1_JTREG_BASIC_OPTIONS += -nativepath:$$($1_JTREG_NATIVEPATH)
 866   endif
 867 
 868   ifneq ($$($1_JTREG_PROBLEM_LIST), )
 869     $1_JTREG_BASIC_OPTIONS += $$(addprefix -exclude:, $$($1_JTREG_PROBLEM_LIST))
 870   endif
 871 
 872   ifneq ($$(JTREG_EXTRA_PROBLEM_LISTS), )
 873     # Accept both absolute paths as well as relative to the current test root.
 874     $1_JTREG_BASIC_OPTIONS += $$(addprefix -exclude:, $$(wildcard \
 875         $$(JTREG_EXTRA_PROBLEM_LISTS) \
 876         $$(addprefix $$($1_TEST_ROOT)/, $$(JTREG_EXTRA_PROBLEM_LISTS)) \
 877     ))
 878   endif
 879 
 880   ifneq ($$(JIB_HOME), )
 881     $1_JTREG_BASIC_OPTIONS += -e:JIB_HOME=$$(JIB_HOME)
 882   endif
 883 
 884   $1_JTREG_BASIC_OPTIONS += -e:TEST_IMAGE_GRAAL_DIR=${TEST_IMAGE_DIR}/hotspot/jtreg/graal

 885 
 886   ifneq ($$(JTREG_FAILURE_HANDLER_OPTIONS), )
 887     $1_JTREG_LAUNCHER_OPTIONS += -Djava.library.path="$(JTREG_FAILURE_HANDLER_DIR)"
 888   endif
 889 
 890   ifneq ($$(JTREG_KEYWORDS), )
 891     # The keywords string may contain problematic characters and may be quoted
 892     # already when it arrives here. Remove any existing quotes and replace them
 893     # with one set of single quotes.
 894     $1_JTREG_KEYWORDS := \
 895         $$(strip $$(subst $$(SQUOTE),,$$(subst $$(DQUOTE),,$$(JTREG_KEYWORDS))))
 896     ifneq ($$($1_JTREG_KEYWORDS), )
 897       $1_JTREG_BASIC_OPTIONS += -k:'$$($1_JTREG_KEYWORDS)'
 898     endif
 899   endif
 900 
 901   ifneq ($$(JTREG_AOT_MODULES), )
 902     $$(eval $$(call SetupAot, $1, \
 903         MODULES := $$(JTREG_AOT_MODULES), \
 904         VM_OPTIONS := $$(JTREG_VM_OPTIONS) $$(JTREG_JAVA_OPTIONS), \


1177 
1178 ifeq ($(TEST_OPTS_JCOV), true)
1179 
1180   jcov-do-start-grabber:
1181         $(call MakeDir, $(JCOV_OUTPUT_DIR))
1182         if $(JAVA) -jar $(JCOV_HOME)/lib/jcov.jar GrabberManager -status 1>/dev/null 2>&1 ; then \
1183           $(JAVA) -jar $(JCOV_HOME)/lib/jcov.jar GrabberManager -stop -stoptimeout 3600 ; \
1184         fi
1185         $(JAVA) -Xmx4g -jar $(JCOV_HOME)/lib/jcov.jar Grabber -v -t \
1186             $(JCOV_IMAGE_DIR)/template.xml -o $(JCOV_RESULT_FILE) \
1187             1>$(JCOV_GRABBER_LOG) 2>&1 &
1188 
1189   jcov-start-grabber: jcov-do-start-grabber
1190         $(call LogWarn, Starting JCov Grabber...)
1191         $(JAVA) -jar $(JCOV_HOME)/lib/jcov.jar GrabberManager -t 600 -wait
1192 
1193   jcov-stop-grabber:
1194         $(call LogWarn, Stopping JCov Grabber...)
1195         $(JAVA) -jar $(JCOV_HOME)/lib/jcov.jar GrabberManager -stop -stoptimeout 3600
1196 






1197   jcov-gen-report: jcov-stop-grabber
1198         $(call LogWarn, Generating JCov report ...)
1199         $(JAVA) -Xmx4g -jar $(JCOV_HOME)/lib/jcov.jar RepGen -sourcepath \
1200             `$(ECHO) $(TOPDIR)/src/*/share/classes/ | $(TR) ' ' ':'` -fmt html \


1201             -o $(JCOV_REPORT) $(JCOV_RESULT_FILE)
1202 
1203   TARGETS += jcov-do-start-grabber jcov-start-grabber jcov-stop-grabber \
1204       jcov-gen-report
1205 
1206   # Hook this into the framework at appropriate places
1207   pre-run-test: jcov-start-grabber
1208 
1209   post-run-test: jcov-gen-report
1210 
1211   jcov-gen-report: run-all-tests
1212 
1213 endif
1214 
1215 ################################################################################
1216 
1217 all: run-test
1218 
1219 .PHONY: default all $(TARGETS)
< prev index next >