< prev index next >

make/RunTests.gmk

Print this page




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_REPORT_TITLE := JDK code coverage report<br/>
1198   ifneq ($(JCOV_FILTERS), )
1199     JCOV_REPORT_TITLE += Code filters: $(JCOV_FILTERS)<br>
1200   endif
1201   JCOV_REPORT_TITLE += Tests: $(TEST)
1202         
1203   jcov-gen-report: jcov-stop-grabber
1204         $(call LogWarn, Generating JCov report ...)
1205         $(JAVA) -Xmx4g -jar $(JCOV_HOME)/lib/jcov.jar RepGen -sourcepath \
1206             `$(ECHO) $(TOPDIR)/src/*/share/classes/ | $(TR) ' ' ':'` -fmt html \
1207             $(JCOV_FILTERS) \
1208             -mainReportTitle "$(JCOV_REPORT_TITLE)" \
1209             -o $(JCOV_REPORT) $(JCOV_RESULT_FILE)
1210 
1211   TARGETS += jcov-do-start-grabber jcov-start-grabber jcov-stop-grabber \
1212       jcov-gen-report
1213 
1214   # Hook this into the framework at appropriate places
1215   pre-run-test: jcov-start-grabber
1216 
1217   post-run-test: jcov-gen-report
1218 
1219   jcov-gen-report: run-all-tests
1220 
1221 endif
1222 
1223 ################################################################################
1224 
1225 all: run-test
1226 
1227 .PHONY: default all $(TARGETS)


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 >