Skip to content

Commit c9af291

Browse files
huonwalexcrichton
authored andcommitted
---
yaml --- r: 149170 b: refs/heads/try2 c: 44e6883 h: refs/heads/master v: v3
1 parent 13e62ae commit c9af291

File tree

2 files changed

+23
-13
lines changed

2 files changed

+23
-13
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: 065e121fc2675631e27b761d2ad5df3ee0c95976
8+
refs/heads/try2: 44e6883d1462ed4072b1d6a3ce6702bc14065045
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: 22 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -333,21 +333,22 @@ $(foreach host,$(CFG_HOST), \
333333

334334
define TEST_RUNNER
335335

336-
# If NO_REBUILD is set then break the dependencies on extra so we can
337-
# test crates without rebuilding std and extra first
336+
# If NO_REBUILD is set then break the dependencies on everything but
337+
# the source files so we can test crates without rebuilding any of the
338+
# parent crates.
338339
ifeq ($(NO_REBUILD),)
339-
STDTESTDEP_$(1)_$(2)_$(3)_$(4) = $$(SREQ$(1)_T_$(2)_H_$(3)) \
340+
TESTDEP_$(1)_$(2)_$(3)_$(4) = $$(SREQ$(1)_T_$(2)_H_$(3)) \
340341
$$(foreach crate,$$(TARGET_CRATES),\
341-
$$(TLIB$(1)_T_$(2)_H_$(3))/stamp.$$(crate))
342+
$$(TLIB$(1)_T_$(2)_H_$(3))/stamp.$$(crate)) \
343+
$$(CRATE_FULLDEPS_$(1)_T_$(2)_H_$(3)_$(4))
342344
else
343-
STDTESTDEP_$(1)_$(2)_$(3)_$(4) =
345+
TESTDEP_$(1)_$(2)_$(3)_$(4) = $$(RSINPUTS_$(4))
344346
endif
345347

346348
$(3)/stage$(1)/test/$(4)test-$(2)$$(X_$(2)): CFG_COMPILER = $(2)
347349
$(3)/stage$(1)/test/$(4)test-$(2)$$(X_$(2)): \
348-
$$(CRATEFILE_$(4)) \
349-
$$(CRATE_FULLDEPS_$(1)_T_$(2)_H_$(3)_$(4)) \
350-
$$(STDTESTDEP_$(1)_$(2)_$(3)_$(4))
350+
$$(CRATEFILE_$(4)) \
351+
$$(TESTDEP_$(1)_$(2)_$(3)_$(4))
351352
@$$(call E, oxidize: $$@)
352353
$$(STAGE$(1)_T_$(2)_H_$(3)) -o $$@ $$< --test \
353354
-L "$$(RT_OUTPUT_DIR_$(2))" \
@@ -684,13 +685,22 @@ $(foreach host,$(CFG_HOST), \
684685

685686
define DEF_CRATE_DOC_TEST
686687

688+
# If NO_REBUILD is set then break the dependencies on everything but
689+
# the source files so we can test crate documentation without
690+
# rebuilding any of the parent crates.
691+
ifeq ($(NO_REBUILD),)
692+
DOCTESTDEP_$(1)_$(2)_$(3)_$(4) = \
693+
$$(TEST_SREQ$(1)_T_$(2)_H_$(3)) \
694+
$$(CRATE_FULLDEPS_$(1)_T_$(2)_H_$(3)_$(4)) \
695+
$$(HBIN$(1)_H_$(3))/rustdoc$$(X_$(3))
696+
else
697+
DOCTESTDEP_$(1)_$(2)_$(3)_$(4) = $$(RSINPUTS_$(4))
698+
endif
699+
687700
check-stage$(1)-T-$(2)-H-$(3)-doc-$(4)-exec: $$(call TEST_OK_FILE,$(1),$(2),$(3),doc-$(4))
688701

689702
ifeq ($(2),$$(CFG_BUILD))
690-
$$(call TEST_OK_FILE,$(1),$(2),$(3),doc-$(4)): \
691-
$$(TEST_SREQ$(1)_T_$(2)_H_$(3)) \
692-
$$(CRATE_FULLDEPS_$(1)_T_$(2)_H_$(3)_$(4)) \
693-
$$(HBIN$(1)_H_$(3))/rustdoc$$(X_$(3))
703+
$$(call TEST_OK_FILE,$(1),$(2),$(3),doc-$(4)): $$(DOCTESTDEP_$(1)_$(2)_$(3)_$(4))
694704
@$$(call E, run doc-$(4) [$(2)])
695705
$$(Q)$$(HBIN$(1)_H_$(3))/rustdoc$$(X_$(3)) --test \
696706
$$(CRATEFILE_$(4)) --test-args "$$(TESTARGS)" && touch $$@

0 commit comments

Comments
 (0)