@@ -236,6 +236,7 @@ check-stage$(1)-T-$(2)-H-$(3): \
236
236
check-stage$(1 ) -T-$(2 ) -H-$(3 ) -rustc \
237
237
check-stage$(1 ) -T-$(2 ) -H-$(3 ) -core \
238
238
check-stage$(1 ) -T-$(2 ) -H-$(3 ) -std \
239
+ check-stage$(1 ) -T-$(2 ) -H-$(3 ) -syntax \
239
240
check-stage$(1 ) -T-$(2 ) -H-$(3 ) -rpass \
240
241
check-stage$(1 ) -T-$(2 ) -H-$(3 ) -rpass-full \
241
242
check-stage$(1 ) -T-$(2 ) -H-$(3 ) -rfail \
@@ -261,6 +262,9 @@ check-stage$(1)-T-$(2)-H-$(3)-core: \
261
262
check-stage$(1 ) -T-$(2 ) -H-$(3 ) -std: \
262
263
check-stage$(1 ) -T-$(2 ) -H-$(3 ) -std-dummy
263
264
265
+ check-stage$(1 ) -T-$(2 ) -H-$(3 ) -syntax: \
266
+ check-stage$(1 ) -T-$(2 ) -H-$(3 ) -syntax-dummy
267
+
264
268
check-stage$(1 ) -T-$(2 ) -H-$(3 ) -rustc: \
265
269
check-stage$(1 ) -T-$(2 ) -H-$(3 ) -rustc-dummy
266
270
@@ -359,6 +363,20 @@ check-stage$(1)-T-$(2)-H-$(3)-std-dummy: \
359
363
$$(Q )$$(call CFG_RUN_TEST,$$< ,$(2 ) ,$(3 ) ) $$(TESTARGS ) \
360
364
--logfile tmp/check-stage$(1 ) -T-$(2 ) -H-$(3 ) -std.log
361
365
366
+ # Rules for the libsyntax test runner
367
+
368
+ $(3 ) /test/syntaxtest.stage$(1 ) -$(2 )$$(X ) : \
369
+ $$(LIBSYNTAX_CRATE ) $$(LIBSYNTAX_INPUTS ) \
370
+ $$(SREQ$(1 ) _T_$(2 ) _H_$(3 ) )
371
+ @$$(call E, compile_and_link: $$@ )
372
+ $$(STAGE$(1 ) _T_$(2 ) _H_$(3 ) ) -o $$@ $$< --test
373
+
374
+ check-stage$(1 ) -T-$(2 ) -H-$(3 ) -syntax-dummy: \
375
+ $(3 ) /test/syntaxtest.stage$(1 ) -$(2 )$$(X )
376
+ @$$(call E, run: $$< )
377
+ $$(Q )$$(call CFG_RUN_TEST,$$< ,$(2 ) ,$(3 ) ) $$(TESTARGS ) \
378
+ --logfile tmp/check-stage$(1 ) -T-$(2 ) -H-$(3 ) -syntax.log
379
+
362
380
# Rules for the rustc test runner
363
381
364
382
$(3 ) /test/rustctest.stage$(1 ) -$(2 )$$(X ) : \
@@ -760,6 +778,9 @@ check-stage$(1)-H-$(2)-core: \
760
778
check-stage$(1 ) -H-$(2 ) -std: \
761
779
$$(foreach target,$$(CFG_TARGET_TRIPLES ) , \
762
780
check-stage$(1 ) -T-$$(target ) -H-$(2 ) -std)
781
+ check-stage$(1 ) -H-$(2 ) -syntax: \
782
+ $$(foreach target,$$(CFG_TARGET_TRIPLES ) , \
783
+ check-stage$(1 ) -T-$$(target ) -H-$(2 ) -syntax)
763
784
check-stage$(1 ) -H-$(2 ) -rpass: \
764
785
$$(foreach target,$$(CFG_TARGET_TRIPLES ) , \
765
786
check-stage$(1 ) -T-$$(target ) -H-$(2 ) -rpass)
@@ -856,6 +877,9 @@ check-stage$(1)-H-all-core: \
856
877
check-stage$(1 ) -H-all-std: \
857
878
$$(foreach target,$$(CFG_TARGET_TRIPLES ) , \
858
879
check-stage$(1 ) -H-$$(target ) -std)
880
+ check-stage$(1 ) -H-all-syntax: \
881
+ $$(foreach target,$$(CFG_TARGET_TRIPLES ) , \
882
+ check-stage$(1 ) -H-$$(target ) -syntax)
859
883
check-stage$(1 ) -H-all-rpass: \
860
884
$$(foreach target,$$(CFG_TARGET_TRIPLES ) , \
861
885
check-stage$(1 ) -H-$$(target ) -rpass)
@@ -917,6 +941,7 @@ check-stage$(1)-perf: check-stage$(1)-H-$$(CFG_HOST_TRIPLE)-perf
917
941
check-stage$(1 ) -rustc: check-stage$(1 ) -H-$$(CFG_HOST_TRIPLE ) -rustc
918
942
check-stage$(1 ) -core: check-stage$(1 ) -H-$$(CFG_HOST_TRIPLE ) -core
919
943
check-stage$(1 ) -std: check-stage$(1 ) -H-$$(CFG_HOST_TRIPLE ) -std
944
+ check-stage$(1 ) -syntax: check-stage$(1 ) -H-$$(CFG_HOST_TRIPLE ) -syntax
920
945
check-stage$(1 ) -rpass: check-stage$(1 ) -H-$$(CFG_HOST_TRIPLE ) -rpass
921
946
check-stage$(1 ) -rpass-full: check-stage$(1 ) -H-$$(CFG_HOST_TRIPLE ) -rpass-full
922
947
check-stage$(1 ) -rfail: check-stage$(1 ) -H-$$(CFG_HOST_TRIPLE ) -rfail
0 commit comments