Skip to content

Commit f005307

Browse files
committed
---
yaml --- r: 3865 b: refs/heads/master c: ae7b757 h: refs/heads/master i: 3863: 69ddb27 v: v3
1 parent 7e814d5 commit f005307

File tree

2 files changed

+29
-1
lines changed

2 files changed

+29
-1
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: 73e6a4f9e512b8e7fbec1c645311fa4382558aff
2+
refs/heads/master: ae7b757ac9e1a8501eadf2b05a81660a0cf13bf8

trunk/mk/tests.mk

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -366,3 +366,31 @@ check-stage3-std:test/stdtest.stage3$(X)
366366
@$(call E, run: $<)
367367
$(Q)$(call CFG_RUN_TARG,stage3,stage3, $<)
368368

369+
# Testing the rustctest crate
370+
371+
test/rustctest.stage1$(X): $(COMPILER_CRATE) $(COMPILER_INPUTS) $(SREQ0) \
372+
stage0/intrinsics.bc
373+
@$(call E, compile_and_link: $@)
374+
$(STAGE0) -o $@ $< --test
375+
376+
test/rustctest.stage2$(X): $(COMPILER_CRATE) $(COMPILER_INPUTS) $(SREQ1) \
377+
stage1/intrinsics.bc
378+
@$(call E, compile_and_link: $@)
379+
$(STAGE1) -o $@ $< --test
380+
381+
test/rustctest.stage3$(X): $(COMPILER_CRATE) $(COMPILER_INPUTS) $(SREQ2) \
382+
stage2/intrinsics.bc
383+
@$(call E, compile_and_link: $@)
384+
$(STAGE2) -o $@ $< --test
385+
386+
check-stage1-rustc: test/rustctest.stage1$(X)
387+
@$(call E, run: $<)
388+
$(Q)$(call CFG_RUN_TARG,stage1,stage0, $<)
389+
390+
check-stage2-rustc: test/rustctest.stage2$(X)
391+
@$(call E, run: $<)
392+
$(Q)$(call CFG_RUN_TARG,stage2,stage1, $<)
393+
394+
check-stage3-rustc: test/rustctest.stage3$(X)
395+
@$(call E, run: $<)
396+
$(Q)$(call CFG_RUN_TARG,stage2,stage1, $<)

0 commit comments

Comments
 (0)