Skip to content

Commit 99714d2

Browse files
committed
---
yaml --- r: 3189 b: refs/heads/master c: fc12577 h: refs/heads/master i: 3187: 477115a v: v3
1 parent f77baeb commit 99714d2

File tree

2 files changed

+25
-1
lines changed

2 files changed

+25
-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: 4b8fba5f34e132c305811dcca8cf7d38b958506a
2+
refs/heads/master: fc12577fdd7969f5e9a136915f6ef48e67acd3bc

trunk/mk/tests.mk

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,3 +264,27 @@ test/compile-fail/%.stage2.out.tmp: test/compile-fail/%.rs $(SREQ2)
264264
$(STAGE2) -c -o $(@:.o=$(X)) $< >$@ 2>&1; test $$? -ne 0
265265
$(Q)grep --text --quiet \
266266
"$$(grep error-pattern $< | cut -d : -f 2- | tr -d '\n\r')" $@
267+
268+
test/compile-fail/%.stage0.out.tmp: test/compile-fail/%.rc $(SREQ0)
269+
@$(call E, compile-fail [stage0]: $@)
270+
$(Q)grep -q error-pattern $<
271+
$(Q)rm -f $@
272+
$(STAGE0) -c -o $(@:.o=$(X)) $< >$@ 2>&1; test $$? -ne 0
273+
$(Q)grep --text --quiet \
274+
"$$(grep error-pattern $< | cut -d : -f 2- | tr -d '\n\r')" $@
275+
276+
test/compile-fail/%.stage1.out.tmp: test/compile-fail/%.rc $(SREQ1)
277+
@$(call E, compile-fail [stage1]: $@)
278+
$(Q)grep -q error-pattern $<
279+
$(Q)rm -f $@
280+
$(STAGE1) -c -o $(@:.o=$(X)) $< >$@ 2>&1; test $$? -ne 0
281+
$(Q)grep --text --quiet \
282+
"$$(grep error-pattern $< | cut -d : -f 2- | tr -d '\n\r')" $@
283+
284+
test/compile-fail/%.stage2.out.tmp: test/compile-fail/%.rc $(SREQ2)
285+
@$(call E, compile-fail [stage2]: $@)
286+
$(Q)grep -q error-pattern $<
287+
$(Q)rm -f $@
288+
$(STAGE2) -c -o $(@:.o=$(X)) $< >$@ 2>&1; test $$? -ne 0
289+
$(Q)grep --text --quiet \
290+
"$$(grep error-pattern $< | cut -d : -f 2- | tr -d '\n\r')" $@

0 commit comments

Comments
 (0)