Skip to content

Commit fc58d47

Browse files
committed
---
yaml --- r: 3860 b: refs/heads/master c: 9a37308 h: refs/heads/master v: v3
1 parent 7d73b2b commit fc58d47

File tree

2 files changed

+23
-2
lines changed

2 files changed

+23
-2
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: f06fdd5ca16abba5c4c0dc7d94a25589942593ee
2+
refs/heads/master: 9a37308101bb188794eebdcd377c30ba39a3c082

trunk/mk/tests.mk

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,6 @@ ALL_TEST_SOURCES := $(TEST_CFAIL_SOURCES_STAGE0) \
138138
$(TEST_RFAIL_SOURCES_STAGE2) \
139139
$(TEST_RPASS_SOURCES_STAGE2)
140140

141-
142141
FT := run_pass_stage2
143142
FT_LIB := $(call CFG_LIB_NAME,$(FT))
144143
FT_DRIVER := $(FT)_driver
@@ -338,9 +337,31 @@ test/compile-fail/%.stage2.out.tmp: test/compile-fail/%.rc $(SREQ2)
338337
$(Q)grep --text --quiet \
339338
"$$(grep error-pattern $< | cut -d : -f 2- | tr -d '\n\r')" $@
340339

340+
# Testing the stdtest crate
341+
341342
STDTEST_CRATE := $(S)src/test/stdtest/stdtest.rc
342343
STDTEST_INPUTS := $(wildcard $(S)src/test/stdtest/*rs)
343344

344345
test/stdtest/stdtest.stage1$(X): $(STDTEST_CRATE) $(STDTEST_INPUTS) $(SREQ1)
345346
@$(call E, compile_and_link: $@)
346347
$(STAGE1) -o $@ $< --test
348+
349+
test/stdtest/stdtest.stage2$(X): $(STDTEST_CRATE) $(STDTEST_INPUTS) $(SREQ2)
350+
@$(call E, compile_and_link: $@)
351+
$(STAGE2) -o $@ $< --test
352+
353+
test/stdtest/stdtest.stage3$(X): $(STDTEST_CRATE) $(STDTEST_INPUTS) $(SREQ3)
354+
@$(call E, compile_and_link: $@)
355+
$(STAGE3) -o $@ $< --test
356+
357+
check-stage1-std:test/stdtest/stdtest.stage1$(X)
358+
@$(call E, run: $<)
359+
$(Q)$(call CFG_RUN_TARG,stage1,stage1, $<)
360+
361+
check-stage2-std:test/stdtest/stdtest.stage2$(X)
362+
@$(call E, run: $<)
363+
$(Q)$(call CFG_RUN_TARG,stage2,stage2, $<)
364+
365+
check-stage3-std:test/stdtest/stdtest.stage3$(X)
366+
@$(call E, run: $<)
367+
$(Q)$(call CFG_RUN_TARG,stage3,stage3, $<)

0 commit comments

Comments
 (0)