Skip to content

Commit 7b8ae74

Browse files
committed
Add a bootstrap snapshot test for x test compiletest
1 parent e99364e commit 7b8ae74

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
@@ -2145,6 +2145,18 @@ mod snapshot {
21452145
");
21462146
}
21472147

2148+
#[test]
2149+
fn test_compiletest_self_test() {
2150+
let ctx = TestCtx::new();
2151+
let steps = ctx.config("test").arg("compiletest").render_steps();
2152+
insta::assert_snapshot!(steps, @r"
2153+
[build] llvm <host>
2154+
[build] rustc 0 <host> -> rustc 1 <host>
2155+
[build] rustc 1 <host> -> std 1 <host>
2156+
[build] rustdoc 1 <host>
2157+
");
2158+
}
2159+
21482160
#[test]
21492161
fn test_compiletest_suites_stage1() {
21502162
let ctx = TestCtx::new();

0 commit comments

Comments
 (0)