Skip to content

Commit bdadad8

Browse files
committed
rustbuild: Add missing test suites
After a comparison with the current set of tests run it was discovered that rustbuild accidentally wasn't running a few test suites. This commit adds back a few more test suites: * rfail-full * pretty-rpass * pretty-rpass-full * pretty-rpass-valgrind * pretty-rfail * pretty-rfail-full * librustc_bitflags unit tests
1 parent 9a14045 commit bdadad8

File tree

3 files changed

+57
-16
lines changed

3 files changed

+57
-16
lines changed

src/bootstrap/build/mod.rs

Lines changed: 32 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -318,10 +318,18 @@ impl Build {
318318
check::compiletest(self, &compiler, target.target,
319319
"run-pass", "run-pass");
320320
}
321+
CheckRPassFull { compiler } => {
322+
check::compiletest(self, &compiler, target.target,
323+
"run-pass", "run-pass-fulldeps");
324+
}
321325
CheckCFail { compiler } => {
322326
check::compiletest(self, &compiler, target.target,
323327
"compile-fail", "compile-fail");
324328
}
329+
CheckCFailFull { compiler } => {
330+
check::compiletest(self, &compiler, target.target,
331+
"compile-fail", "compile-fail-fulldeps")
332+
}
325333
CheckPFail { compiler } => {
326334
check::compiletest(self, &compiler, target.target,
327335
"parse-fail", "parse-fail");
@@ -330,10 +338,34 @@ impl Build {
330338
check::compiletest(self, &compiler, target.target,
331339
"run-fail", "run-fail");
332340
}
341+
CheckRFailFull { compiler } => {
342+
check::compiletest(self, &compiler, target.target,
343+
"run-fail", "run-fail-fulldeps");
344+
}
333345
CheckPretty { compiler } => {
334346
check::compiletest(self, &compiler, target.target,
335347
"pretty", "pretty");
336348
}
349+
CheckPrettyRPass { compiler } => {
350+
check::compiletest(self, &compiler, target.target,
351+
"pretty", "run-pass");
352+
}
353+
CheckPrettyRPassFull { compiler } => {
354+
check::compiletest(self, &compiler, target.target,
355+
"pretty", "run-pass-fulldeps");
356+
}
357+
CheckPrettyRFail { compiler } => {
358+
check::compiletest(self, &compiler, target.target,
359+
"pretty", "run-fail");
360+
}
361+
CheckPrettyRFailFull { compiler } => {
362+
check::compiletest(self, &compiler, target.target,
363+
"pretty", "run-fail-fulldeps");
364+
}
365+
CheckPrettyRPassValgrind { compiler } => {
366+
check::compiletest(self, &compiler, target.target,
367+
"pretty", "run-pass-valgrind");
368+
}
337369
CheckCodegen { compiler } => {
338370
check::compiletest(self, &compiler, target.target,
339371
"codegen", "codegen");
@@ -370,14 +402,6 @@ impl Build {
370402
check::compiletest(self, &compiler, target.target,
371403
"run-pass-valgrind", "run-pass-valgrind");
372404
}
373-
CheckRPassFull { compiler } => {
374-
check::compiletest(self, &compiler, target.target,
375-
"run-pass", "run-pass-fulldeps");
376-
}
377-
CheckCFailFull { compiler } => {
378-
check::compiletest(self, &compiler, target.target,
379-
"compile-fail", "compile-fail-fulldeps")
380-
}
381405
CheckDocs { compiler } => {
382406
check::docs(self, &compiler);
383407
}

src/bootstrap/build/step.rs

Lines changed: 25 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -106,19 +106,25 @@ macro_rules! targets {
106106
(check_cargotest, CheckCargoTest { stage: u32 }),
107107
(check_tidy, CheckTidy { stage: u32 }),
108108
(check_rpass, CheckRPass { compiler: Compiler<'a> }),
109+
(check_rpass_full, CheckRPassFull { compiler: Compiler<'a> }),
110+
(check_rpass_valgrind, CheckRPassValgrind { compiler: Compiler<'a> }),
109111
(check_rfail, CheckRFail { compiler: Compiler<'a> }),
112+
(check_rfail_full, CheckRFailFull { compiler: Compiler<'a> }),
110113
(check_cfail, CheckCFail { compiler: Compiler<'a> }),
114+
(check_cfail_full, CheckCFailFull { compiler: Compiler<'a> }),
111115
(check_pfail, CheckPFail { compiler: Compiler<'a> }),
116+
(check_pretty, CheckPretty { compiler: Compiler<'a> }),
117+
(check_pretty_rpass, CheckPrettyRPass { compiler: Compiler<'a> }),
118+
(check_pretty_rpass_full, CheckPrettyRPassFull { compiler: Compiler<'a> }),
119+
(check_pretty_rfail, CheckPrettyRFail { compiler: Compiler<'a> }),
120+
(check_pretty_rfail_full, CheckPrettyRFailFull { compiler: Compiler<'a> }),
121+
(check_pretty_rpass_valgrind, CheckPrettyRPassValgrind { compiler: Compiler<'a> }),
112122
(check_codegen, CheckCodegen { compiler: Compiler<'a> }),
113123
(check_codegen_units, CheckCodegenUnits { compiler: Compiler<'a> }),
114124
(check_incremental, CheckIncremental { compiler: Compiler<'a> }),
115125
(check_ui, CheckUi { compiler: Compiler<'a> }),
116126
(check_debuginfo, CheckDebuginfo { compiler: Compiler<'a> }),
117127
(check_rustdoc, CheckRustdoc { compiler: Compiler<'a> }),
118-
(check_pretty, CheckPretty { compiler: Compiler<'a> }),
119-
(check_rpass_valgrind, CheckRPassValgrind { compiler: Compiler<'a> }),
120-
(check_rpass_full, CheckRPassFull { compiler: Compiler<'a> }),
121-
(check_cfail_full, CheckCFailFull { compiler: Compiler<'a> }),
122128
(check_docs, CheckDocs { compiler: Compiler<'a> }),
123129
(check_error_index, CheckErrorIndex { compiler: Compiler<'a> }),
124130
(check_rmake, CheckRMake { compiler: Compiler<'a> }),
@@ -378,8 +384,11 @@ impl<'a> Step<'a> {
378384
Source::Check { stage, compiler } => {
379385
vec![
380386
self.check_rpass(compiler),
381-
self.check_cfail(compiler),
387+
self.check_rpass_full(compiler),
382388
self.check_rfail(compiler),
389+
self.check_rfail_full(compiler),
390+
self.check_cfail(compiler),
391+
self.check_cfail_full(compiler),
383392
self.check_pfail(compiler),
384393
self.check_incremental(compiler),
385394
self.check_ui(compiler),
@@ -391,9 +400,12 @@ impl<'a> Step<'a> {
391400
self.check_debuginfo(compiler),
392401
self.check_rustdoc(compiler),
393402
self.check_pretty(compiler),
403+
self.check_pretty_rpass(compiler),
404+
self.check_pretty_rpass_full(compiler),
405+
self.check_pretty_rfail(compiler),
406+
self.check_pretty_rfail_full(compiler),
407+
self.check_pretty_rpass_valgrind(compiler),
394408
self.check_rpass_valgrind(compiler),
395-
self.check_rpass_full(compiler),
396-
self.check_cfail_full(compiler),
397409
self.check_error_index(compiler),
398410
self.check_docs(compiler),
399411
self.check_rmake(compiler),
@@ -412,6 +424,8 @@ impl<'a> Step<'a> {
412424
Source::CheckTidy { stage } => {
413425
vec![self.tool_tidy(stage)]
414426
}
427+
Source::CheckPrettyRPass { compiler } |
428+
Source::CheckPrettyRFail { compiler } |
415429
Source::CheckRFail { compiler } |
416430
Source::CheckPFail { compiler } |
417431
Source::CheckCodegen { compiler } |
@@ -438,7 +452,11 @@ impl<'a> Step<'a> {
438452
]
439453
}
440454
Source::CheckRPassFull { compiler } |
455+
Source::CheckRFailFull { compiler } |
441456
Source::CheckCFailFull { compiler } |
457+
Source::CheckPrettyRPassFull { compiler } |
458+
Source::CheckPrettyRFailFull { compiler } |
459+
Source::CheckPrettyRPassValgrind { compiler } |
442460
Source::CheckRMake { compiler } => {
443461
vec![self.librustc(compiler),
444462
self.tool_compiletest(compiler.stage)]

src/librustc_bitflags/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,4 @@ version = "0.0.0"
66
[lib]
77
name = "rustc_bitflags"
88
path = "lib.rs"
9-
test = false
109
doctest = false

0 commit comments

Comments
 (0)