Skip to content

Commit 3c4ff1b

Browse files
committed
mk: rename check-...-doc-<crate> to check-...-doc-crate-<crate>.
E.g. this stops check-...-doc rules for `rustdoc.md` and `librustdoc` from stamping on each other, so that they are correctly built and tested. (Previously only the rustdoc crate was tested.)
1 parent f783321 commit 3c4ff1b

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

mk/tests.mk

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ endif
309309

310310
check-stage$(1)-T-$(2)-H-$(3)-doc-crates-exec: \
311311
$$(foreach crate,$$(TEST_DOC_CRATES), \
312-
check-stage$(1)-T-$(2)-H-$(3)-doc-$$(crate)-exec)
312+
check-stage$(1)-T-$(2)-H-$(3)-doc-crate-$$(crate)-exec)
313313

314314
check-stage$(1)-T-$(2)-H-$(3)-doc-exec: \
315315
$$(foreach docname,$$(DOCS), \
@@ -721,15 +721,16 @@ else
721721
CRATEDOCTESTDEP_$(1)_$(2)_$(3)_$(4) = $$(RSINPUTS_$(4))
722722
endif
723723

724-
check-stage$(1)-T-$(2)-H-$(3)-doc-$(4)-exec: $$(call TEST_OK_FILE,$(1),$(2),$(3),doc-$(4))
724+
check-stage$(1)-T-$(2)-H-$(3)-doc-crate-$(4)-exec: \
725+
$$(call TEST_OK_FILE,$(1),$(2),$(3),doc-crate-$(4))
725726

726727
ifeq ($(2),$$(CFG_BUILD))
727-
$$(call TEST_OK_FILE,$(1),$(2),$(3),doc-$(4)): $$(CRATEDOCTESTDEP_$(1)_$(2)_$(3)_$(4))
728-
@$$(call E, run doc-$(4) [$(2)])
728+
$$(call TEST_OK_FILE,$(1),$(2),$(3),doc-crate-$(4)): $$(CRATEDOCTESTDEP_$(1)_$(2)_$(3)_$(4))
729+
@$$(call E, run doc-crate-$(4) [$(2)])
729730
$$(Q)$$(RUSTDOC_$(1)_T_$(2)_H_$(3)) --test \
730731
$$(CRATEFILE_$(4)) --test-args "$$(TESTARGS)" && touch $$@
731732
else
732-
$$(call TEST_OK_FILE,$(1),$(2),$(3),doc-$(4)):
733+
$$(call TEST_OK_FILE,$(1),$(2),$(3),doc-crate-$(4)):
733734
touch $$@
734735
endif
735736

@@ -748,7 +749,7 @@ $(foreach host,$(CFG_HOST), \
748749
TEST_GROUPS = \
749750
crates \
750751
$(foreach crate,$(TEST_CRATES),$(crate)) \
751-
$(foreach crate,$(TEST_DOC_CRATES),doc-$(crate)) \
752+
$(foreach crate,$(TEST_DOC_CRATES),doc-crate-$(crate)) \
752753
rpass \
753754
rpass-full \
754755
rfail \
@@ -830,7 +831,7 @@ define DEF_CHECK_DOC_FOR_STAGE
830831
check-stage$(1)-docs: $$(foreach docname,$$(DOCS),\
831832
check-stage$(1)-T-$$(CFG_BUILD)-H-$$(CFG_BUILD)-doc-$$(docname)) \
832833
$$(foreach crate,$$(TEST_DOC_CRATES),\
833-
check-stage$(1)-T-$$(CFG_BUILD)-H-$$(CFG_BUILD)-doc-$$(crate))
834+
check-stage$(1)-T-$$(CFG_BUILD)-H-$$(CFG_BUILD)-doc-crate-$$(crate))
834835
endef
835836

836837
$(foreach stage,$(STAGES), \

0 commit comments

Comments
 (0)