File tree Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -264,3 +264,27 @@ test/compile-fail/%.stage2.out.tmp: test/compile-fail/%.rs $(SREQ2)
264
264
$(STAGE2 ) -c -o $(@:.o=$(X ) ) $< > $@ 2>&1 ; test $$? -ne 0
265
265
$(Q ) grep --text --quiet \
266
266
"$$(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')" $@
You can’t perform that action at this time.
0 commit comments