@@ -118,6 +118,7 @@ define TEST_STAGEN
118
118
119
119
check-stage$(1 ) -T-$(2 ) -H-$(3 ) : tidy \
120
120
check-stage$(1 ) -T-$(2 ) -H-$(3 ) -rustc \
121
+ check-stage$(1 ) -T-$(2 ) -H-$(3 ) -core \
121
122
check-stage$(1 ) -T-$(2 ) -H-$(3 ) -std \
122
123
check-stage$(1 ) -T-$(2 ) -H-$(3 ) -rpass \
123
124
check-stage$(1 ) -T-$(2 ) -H-$(3 ) -rfail \
@@ -126,6 +127,9 @@ check-stage$(1)-T-$(2)-H-$(3): tidy \
126
127
check-stage$(1 ) -T-$(2 ) -H-$(3 ) -pretty \
127
128
check-stage$(1 ) -T-$(2 ) -H-$(3 ) -rustdoc
128
129
130
+ check-stage$(1 ) -T-$(2 ) -H-$(3 ) -core: \
131
+ check-stage$(1 ) -T-$(2 ) -H-$(3 ) -core-dummy
132
+
129
133
check-stage$(1 ) -T-$(2 ) -H-$(3 ) -std: \
130
134
check-stage$(1 ) -T-$(2 ) -H-$(3 ) -std-dummy
131
135
@@ -168,6 +172,19 @@ check-stage$(1)-T-$(2)-H-$(3)-pretty-pretty: \
168
172
check-stage$(1 ) -T-$(2 ) -H-$(3 ) -rustdoc: \
169
173
check-stage$(1 ) -T-$(2 ) -H-$(3 ) -rustdoc-dummy
170
174
175
+ # Rules for the core library test runner
176
+
177
+ $(3 ) /test/coretest.stage$(1 ) -$(2 )$$(X ) : \
178
+ $$(CORELIB_CRATE ) $$(CORELIB_INPUTS ) \
179
+ $$(SREQ$(1 ) _T_$(2 ) _H_$(3 ) )
180
+ @$$(call E, compile_and_link: $$@ )
181
+ $$(STAGE$(1 ) _T_$(2 ) _H_$(3 ) ) -o $$@ $$< --test --no-core
182
+
183
+ check-stage$(1 ) -T-$(2 ) -H-$(3 ) -core-dummy: \
184
+ $(3 ) /test/coretest.stage$(1 ) -$(2 )$$(X )
185
+ @$$(call E, run: $$< )
186
+ $$(Q )$$(call CFG_RUN_TEST,$$< ,$(2 ) ,$(3 ) ) $$(TESTARGS )
187
+
171
188
# Rules for the standard library test runner
172
189
173
190
$(3 ) /test/stdtest.stage$(1 ) -$(2 )$$(X ) : \
@@ -422,6 +439,9 @@ check-stage$(1)-H-$(2)-perf: \
422
439
check-stage$(1 ) -H-$(2 ) -rustc: \
423
440
$$(foreach target,$$(CFG_TARGET_TRIPLES ) , \
424
441
check-stage$(1 ) -T-$$(target ) -H-$(2 ) -rustc)
442
+ check-stage$(1 ) -H-$(2 ) -core: \
443
+ $$(foreach target,$$(CFG_TARGET_TRIPLES ) , \
444
+ check-stage$(1 ) -T-$$(target ) -H-$(2 ) -core)
425
445
check-stage$(1 ) -H-$(2 ) -std: \
426
446
$$(foreach target,$$(CFG_TARGET_TRIPLES ) , \
427
447
check-stage$(1 ) -T-$$(target ) -H-$(2 ) -std)
@@ -482,6 +502,9 @@ check-stage$(1)-H-all-perf: \
482
502
check-stage$(1 ) -H-all-rustc: \
483
503
$$(foreach target,$$(CFG_TARGET_TRIPLES ) , \
484
504
check-stage$(1 ) -H-$$(target ) -rustc)
505
+ check-stage$(1 ) -H-all-core: \
506
+ $$(foreach target,$$(CFG_TARGET_TRIPLES ) , \
507
+ check-stage$(1 ) -H-$$(target ) -core)
485
508
check-stage$(1 ) -H-all-std: \
486
509
$$(foreach target,$$(CFG_TARGET_TRIPLES ) , \
487
510
check-stage$(1 ) -H-$$(target ) -std)
@@ -526,6 +549,7 @@ define DEF_CHECK_FOR_STAGE
526
549
check-stage$(1 ) : check-stage$(1 ) -H-$$(CFG_HOST_TRIPLE )
527
550
check-stage$(1 ) -perf: check-stage$(1 ) -H-$$(CFG_HOST_TRIPLE ) -perf
528
551
check-stage$(1 ) -rustc: check-stage$(1 ) -H-$$(CFG_HOST_TRIPLE ) -rustc
552
+ check-stage$(1 ) -core: check-stage$(1 ) -H-$$(CFG_HOST_TRIPLE ) -core
529
553
check-stage$(1 ) -std: check-stage$(1 ) -H-$$(CFG_HOST_TRIPLE ) -std
530
554
check-stage$(1 ) -rpass: check-stage$(1 ) -H-$$(CFG_HOST_TRIPLE ) -rpass
531
555
check-stage$(1 ) -rfail: check-stage$(1 ) -H-$$(CFG_HOST_TRIPLE ) -rfail
0 commit comments