Skip to content

Commit 0bf06c9

Browse files
committed
---
yaml --- r: 147444 b: refs/heads/try2 c: d975060 h: refs/heads/master v: v3
1 parent 4f9b0f2 commit 0bf06c9

File tree

2 files changed

+17
-11
lines changed

2 files changed

+17
-11
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ refs/heads/snap-stage3: 78a7676898d9f80ab540c6df5d4c9ce35bb50463
55
refs/heads/try: 519addf6277dbafccbb4159db4b710c37eaa2ec5
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8-
refs/heads/try2: c7cf5dc270ff8636199345fcff457f1443e839b5
8+
refs/heads/try2: d975060de6c944ca12ce5205fbc9fc7726948ae1
99
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try2/mk/tests.mk

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -745,21 +745,27 @@ CRATE_DOC_LIB-extra = $(EXTRALIB_CRATE)
745745

746746
define DEF_CRATE_DOC_TEST
747747

748-
check-stage$(1)-T-$(2)-H-$(2)-doc-$(3)-exec: $$(call TEST_OK_FILE,$(1),$(2),$(2),doc-$(3))
748+
check-stage$(1)-T-$(2)-H-$(3)-doc-$(4)-exec: $$(call TEST_OK_FILE,$(1),$(2),$(3),doc-$(4))
749749

750-
$$(call TEST_OK_FILE,$(1),$(2),$(2),doc-$(3)): \
751-
$$(TEST_SREQ$(1)_T_$(2)_H_$(2)) \
752-
$$(HBIN$(1)_H_$(2))/rustdoc$$(X_$(2))
753-
@$$(call E, run doc-$(3) [$(2)])
754-
$$(Q)$$(HBIN$(1)_H_$(2))/rustdoc$$(X_$(2)) --test \
755-
$$(CRATE_DOC_LIB-$(3)) && touch $$@
750+
ifeq ($(2),$$(CFG_BUILD))
751+
$$(call TEST_OK_FILE,$(1),$(2),$(3),doc-$(4)): \
752+
$$(TEST_SREQ$(1)_T_$(2)_H_$(3)) \
753+
$$(HBIN$(1)_H_$(3))/rustdoc$$(X_$(3))
754+
@$$(call E, run doc-$(4) [$(2)])
755+
$$(Q)$$(HBIN$(1)_H_$(3))/rustdoc$$(X_$(3)) --test \
756+
$$(CRATE_DOC_LIB-$(4)) && touch $$@
757+
else
758+
$$(call TEST_OK_FILE,$(1),$(2),$(3),doc-$(4)):
759+
touch $$@
760+
endif
756761

757762
endef
758763

759764
$(foreach host,$(CFG_HOST), \
760-
$(foreach stage,$(STAGES), \
761-
$(foreach crate,$(TEST_DOC_CRATES), \
762-
$(eval $(call DEF_CRATE_DOC_TEST,$(stage),$(host),$(crate))))))
765+
$(foreach target,$(CFG_TARGET), \
766+
$(foreach stage,$(STAGES), \
767+
$(foreach crate,$(TEST_DOC_CRATES), \
768+
$(eval $(call DEF_CRATE_DOC_TEST,$(stage),$(target),$(host),$(crate)))))))
763769

764770
######################################################################
765771
# Extracting tests for docs

0 commit comments

Comments
 (0)