Skip to content

Commit 0fc58e5

Browse files
committed
---
yaml --- r: 125917 b: refs/heads/try c: ee21b00 h: refs/heads/master i: 125915: 16963c3 v: v3
1 parent 3c0da36 commit 0fc58e5

File tree

17 files changed

+1189
-410
lines changed

17 files changed

+1189
-410
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
refs/heads/master: f2fa55903e378368ed9173560f03a0ef16e371c2
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 9fc8394d3bce22ab483f98842434c84c396212ae
5-
refs/heads/try: 5de8ed541a93310f8fae5384ccbf422a8f2fcdcb
5+
refs/heads/try: ee21b009bbbe1f49981ed1ed8384c02d7ecdd19d
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c

branches/try/mk/grammar.mk

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ SG = $(S)src/grammar/
1313
B = $(CFG_BUILD_DIR)/$(CFG_BUILD)/stage2/
1414
L = $(B)lib/rustlib/$(CFG_BUILD)/lib
1515
LD = $(CFG_BUILD)/stage2/lib/rustlib/$(CFG_BUILD)/lib/
16-
RUSTC = $(B)bin/rustc
16+
RUSTC = $(STAGE2_T_$(CFG_BUILD)_H_$(CFG_BUILD))
1717

1818
# Run the reference lexer against libsyntax and compare the tokens and spans.
1919
# If "// ignore-lexer-test" is present in the file, it will be ignored.
@@ -37,19 +37,25 @@ $(BG)RustLexer.class: $(SG)RustLexer.g4
3737
$(BG)verify: $(SG)verify.rs rustc-stage2-H-$(CFG_BUILD) $(LD)stamp.regex_macros $(LD)stamp.rustc
3838
$(Q)$(RUSTC) -O --out-dir $(BG) -L $(L) $(SG)verify.rs
3939

40-
check-lexer: $(BG) $(BG)RustLexer.class $(BG)verify
4140
ifdef CFG_JAVAC
4241
ifdef CFG_ANTLR4
4342
ifdef CFG_GRUN
43+
check-lexer: $(BG) $(BG)RustLexer.class $(BG)verify
4444
$(info Verifying libsyntax against the reference lexer ...)
4545
$(Q)$(SG)check.sh $(S) "$(BG)" \
4646
"$(CFG_GRUN)" "$(BG)verify" "$(BG)RustLexer.tokens"
4747
else
48-
$(info grun not available, skipping lexer test...)
48+
$(info cfg: grun not available, skipping lexer test...)
49+
check-lexer:
50+
4951
endif
5052
else
51-
$(info antlr4 not available, skipping lexer test...)
53+
$(info cfg: antlr4 not available, skipping lexer test...)
54+
check-lexer:
55+
5256
endif
5357
else
54-
$(info javac not available, skipping lexer test...)
58+
$(info cfg: javac not available, skipping lexer test...)
59+
check-lexer:
60+
5561
endif

branches/try/mk/tests.mk

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,28 +171,41 @@ endif
171171
# Main test targets
172172
######################################################################
173173

174+
# The main testing target. Tests lots of stuff.
174175
check: cleantmptestlogs cleantestlibs check-notidy tidy
175176

177+
# As above but don't bother running tidy.
176178
check-notidy: cleantmptestlogs cleantestlibs all check-stage2
177179
$(Q)$(CFG_PYTHON) $(S)src/etc/check-summary.py tmp/*.log
178180

181+
# A slightly smaller set of tests for smoke testing.
179182
check-lite: cleantestlibs cleantmptestlogs \
180183
$(foreach crate,$(TEST_TARGET_CRATES),check-stage2-$(crate)) \
181184
check-stage2-rpass \
182185
check-stage2-rfail check-stage2-cfail check-stage2-rmake
183186
$(Q)$(CFG_PYTHON) $(S)src/etc/check-summary.py tmp/*.log
184187

188+
# Only check the 'reference' tests: rpass/cfail/rfail/rmake.
185189
check-ref: cleantestlibs cleantmptestlogs check-stage2-rpass \
186190
check-stage2-rfail check-stage2-cfail check-stage2-rmake
187191
$(Q)$(CFG_PYTHON) $(S)src/etc/check-summary.py tmp/*.log
188192

193+
# Only check the docs.
189194
check-docs: cleantestlibs cleantmptestlogs check-stage2-docs
190195
$(Q)$(CFG_PYTHON) $(S)src/etc/check-summary.py tmp/*.log
191196

192197
# NOTE: Remove after reprogramming windows bots
193198
check-fast: check-lite
194199

195-
check-syntax: check-lexer
200+
# Some less critical tests that are not prone to breakage.
201+
# Not run as part of the normal test suite, but tested by bors on checkin.
202+
check-secondary: check-lexer check-pretty
203+
204+
# check + check-secondary.
205+
check-all: check check-secondary
206+
207+
# Pretty-printing tests.
208+
check-pretty: check-stage2-T-$(CFG_BUILD)-H-$(CFG_BUILD)-pretty-exec
196209

197210
.PHONY: cleantmptestlogs cleantestlibs
198211

0 commit comments

Comments
 (0)