-
Notifications
You must be signed in to change notification settings - Fork 13.5k
Add bootstrap check snapshot tests #143316
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
3c391a6
4dfa59d
a7c6251
029304e
c17da9e
07a1b82
e6c64df
3f3c498
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1233,6 +1233,171 @@ mod snapshot { | |
"); | ||
} | ||
|
||
#[test] | ||
fn check_compiler_no_explicit_stage() { | ||
let ctx = TestCtx::new(); | ||
insta::assert_snapshot!( | ||
ctx.config("check") | ||
.path("compiler") | ||
.render_steps(), @r" | ||
[check] std <host> | ||
[build] llvm <host> | ||
[check] rustc <host> | ||
"); | ||
|
||
insta::assert_snapshot!( | ||
ctx.config("check") | ||
.path("rustc") | ||
.render_steps(), @r" | ||
[build] llvm <host> | ||
[check] rustc 0 <host> -> rustc 1 <host> | ||
"); | ||
} | ||
|
||
#[test] | ||
#[should_panic] | ||
fn check_compiler_stage_0() { | ||
let ctx = TestCtx::new(); | ||
ctx.config("check").path("compiler").stage(0).run(); | ||
} | ||
|
||
#[test] | ||
fn check_compiler_stage_1() { | ||
let ctx = TestCtx::new(); | ||
insta::assert_snapshot!( | ||
ctx.config("check") | ||
.path("compiler") | ||
.stage(1) | ||
.render_steps(), @r" | ||
[build] llvm <host> | ||
[build] rustc 0 <host> -> rustc 1 <host> | ||
[build] rustc 1 <host> -> std 1 <host> | ||
[check] rustc <host> | ||
Comment on lines
+1275
to
+1277
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Question: I'm assuming the staging info is intended to be a follow-up (as in the overall PR) right? As in, I'd expect the derivation chain for this to look like (overly simplified) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah. Right now, the check steps implicitly decide which compiler will build them, it's not represented explicitly in their Step parameters. Therefore it's also not easily representable in the step metadata. |
||
"); | ||
} | ||
|
||
#[test] | ||
fn check_compiler_stage_2() { | ||
let ctx = TestCtx::new(); | ||
insta::assert_snapshot!( | ||
ctx.config("check") | ||
.path("compiler") | ||
.stage(2) | ||
.render_steps(), @r" | ||
[build] llvm <host> | ||
[build] rustc 0 <host> -> rustc 1 <host> | ||
[build] rustc 1 <host> -> std 1 <host> | ||
[build] rustc 1 <host> -> rustc 2 <host> | ||
[build] rustc 2 <host> -> std 2 <host> | ||
[check] rustc <host> | ||
"); | ||
} | ||
|
||
#[test] | ||
fn check_library_no_explicit_stage() { | ||
let ctx = TestCtx::new(); | ||
insta::assert_snapshot!( | ||
ctx.config("check") | ||
.path("library") | ||
.render_steps(), @r" | ||
[build] llvm <host> | ||
[build] rustc 0 <host> -> rustc 1 <host> | ||
[check] std <host> | ||
"); | ||
} | ||
|
||
#[test] | ||
#[should_panic] | ||
fn check_library_stage_0() { | ||
let ctx = TestCtx::new(); | ||
ctx.config("check").path("library").stage(0).run(); | ||
} | ||
|
||
#[test] | ||
fn check_library_stage_1() { | ||
let ctx = TestCtx::new(); | ||
insta::assert_snapshot!( | ||
ctx.config("check") | ||
.path("library") | ||
.stage(1) | ||
.render_steps(), @r" | ||
[build] llvm <host> | ||
[build] rustc 0 <host> -> rustc 1 <host> | ||
[check] std <host> | ||
"); | ||
} | ||
|
||
#[test] | ||
fn check_library_stage_2() { | ||
let ctx = TestCtx::new(); | ||
insta::assert_snapshot!( | ||
ctx.config("check") | ||
.path("library") | ||
.stage(2) | ||
.render_steps(), @r" | ||
[build] llvm <host> | ||
[build] rustc 0 <host> -> rustc 1 <host> | ||
[build] rustc 1 <host> -> std 1 <host> | ||
[build] rustc 1 <host> -> rustc 2 <host> | ||
[check] std <host> | ||
"); | ||
} | ||
|
||
#[test] | ||
fn check_miri_no_explicit_stage() { | ||
let ctx = TestCtx::new(); | ||
insta::assert_snapshot!( | ||
ctx.config("check") | ||
.path("miri") | ||
.render_steps(), @r" | ||
[check] std <host> | ||
[build] llvm <host> | ||
[check] rustc <host> | ||
[check] Miri <host> | ||
"); | ||
} | ||
|
||
#[test] | ||
#[should_panic] | ||
fn check_miri_stage_0() { | ||
let ctx = TestCtx::new(); | ||
ctx.config("check").path("miri").stage(0).run(); | ||
} | ||
|
||
#[test] | ||
fn check_miri_stage_1() { | ||
let ctx = TestCtx::new(); | ||
insta::assert_snapshot!( | ||
ctx.config("check") | ||
.path("miri") | ||
.stage(1) | ||
.render_steps(), @r" | ||
[build] llvm <host> | ||
[build] rustc 0 <host> -> rustc 1 <host> | ||
[build] rustc 1 <host> -> std 1 <host> | ||
[check] rustc <host> | ||
[check] Miri <host> | ||
"); | ||
} | ||
|
||
#[test] | ||
fn check_miri_stage_2() { | ||
let ctx = TestCtx::new(); | ||
insta::assert_snapshot!( | ||
ctx.config("check") | ||
.path("miri") | ||
.stage(2) | ||
.render_steps(), @r" | ||
[build] llvm <host> | ||
[build] rustc 0 <host> -> rustc 1 <host> | ||
[build] rustc 1 <host> -> std 1 <host> | ||
[build] rustc 1 <host> -> rustc 2 <host> | ||
[build] rustc 2 <host> -> std 2 <host> | ||
[check] rustc <host> | ||
[check] Miri <host> | ||
"); | ||
} | ||
|
||
#[test] | ||
fn test_exclude() { | ||
let ctx = TestCtx::new(); | ||
|
Uh oh!
There was an error while loading. Please reload this page.