提交 5e8b4971 编写于 作者: O ohair

6987114: Fix top level "test" Makefile logic, add jdk/make/Makefile test target

Reviewed-by: mchung
上级 68a0cc7f
...@@ -558,9 +558,12 @@ endif ...@@ -558,9 +558,12 @@ endif
# rule to test # rule to test
################################################################ ################################################################
.NOTPARALLEL: test .NOTPARALLEL: test_run
test: test_clean test_start test_summary test:
$(MAKE) test_run
test_run: test_clean test_start test_summary
test_start: test_start:
@$(ECHO) "Tests started at `$(DATE)`" @$(ECHO) "Tests started at `$(DATE)`"
...@@ -586,7 +589,7 @@ test_summary: $(OUTPUTDIR)/test_failures.txt ...@@ -586,7 +589,7 @@ test_summary: $(OUTPUTDIR)/test_failures.txt
# Get failure list from log # Get failure list from log
$(OUTPUTDIR)/test_failures.txt: $(OUTPUTDIR)/test_log.txt $(OUTPUTDIR)/test_failures.txt: $(OUTPUTDIR)/test_log.txt
@$(RM) $@ @$(RM) $@
@( $(EGREP) '^FAILED:' $< || $(ECHO) "" ) > $@ @( $(EGREP) '^FAILED:' $< || $(ECHO) "" ) | $(NAWK) 'length>0' > $@
# Get log file of all tests run # Get log file of all tests run
JDK_TO_TEST := $(shell \ JDK_TO_TEST := $(shell \
...@@ -598,10 +601,11 @@ JDK_TO_TEST := $(shell \ ...@@ -598,10 +601,11 @@ JDK_TO_TEST := $(shell \
$(ECHO) "$(PRODUCT_HOME)"; \ $(ECHO) "$(PRODUCT_HOME)"; \
fi \ fi \
) )
TEST_TARGETS=all
$(OUTPUTDIR)/test_log.txt: $(OUTPUTDIR)/test_log.txt:
$(RM) $@ $(RM) $@
( $(CD) test && \ ( $(CD) test && \
$(MAKE) NO_STOPPING=- PRODUCT_HOME=$(JDK_TO_TEST) \ $(MAKE) NO_STOPPING=- PRODUCT_HOME=$(JDK_TO_TEST) $(TEST_TARGETS) \
) | tee $@ ) | tee $@
################################################################ ################################################################
...@@ -614,7 +618,7 @@ include ./make/jprt.gmk ...@@ -614,7 +618,7 @@ include ./make/jprt.gmk
# PHONY # PHONY
################################################################ ################################################################
.PHONY: all test test_start test_summary test_clean \ .PHONY: all test test_run test_start test_summary test_clean \
generic_build_repo_series \ generic_build_repo_series \
what clobber insane \ what clobber insane \
dev dev-build dev-sanity dev-clobber \ dev dev-build dev-sanity dev-clobber \
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册