Skip to content

Commit 96488cc

Browse files
committed
Add a bootstrap snapshot test for x test compiletest
1 parent 4fb7768 commit 96488cc

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/bootstrap/src/core/builder/tests.rs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2158,6 +2158,18 @@ mod snapshot {
21582158
");
21592159
}
21602160

2161+
#[test]
2162+
fn test_compiletest_self_test() {
2163+
let ctx = TestCtx::new();
2164+
let steps = ctx.config("test").arg("compiletest").render_steps();
2165+
insta::assert_snapshot!(steps, @r"
2166+
[build] llvm <host>
2167+
[build] rustc 0 <host> -> rustc 1 <host>
2168+
[build] rustc 1 <host> -> std 1 <host>
2169+
[build] rustdoc 1 <host>
2170+
");
2171+
}
2172+
21612173
#[test]
21622174
fn test_compiletest_suites_stage1() {
21632175
let ctx = TestCtx::new();

0 commit comments

Comments
 (0)