Skip to content

Commit 4375e9d

Browse files
committed
Add snapshot test for disting compiler docs
1 parent a6aa509 commit 4375e9d

File tree

1 file changed

+53
-1
lines changed

1 file changed

+53
-1
lines changed

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

Lines changed: 53 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1130,6 +1130,59 @@ mod snapshot {
11301130
);
11311131
}
11321132

1133+
#[test]
1134+
fn dist_compiler_docs() {
1135+
let ctx = TestCtx::new();
1136+
insta::assert_snapshot!(
1137+
ctx.config("dist")
1138+
.path("rustc-docs")
1139+
.args(&["--set", "build.compiler-docs=true"])
1140+
.render_steps(), @r"
1141+
[build] rustc 0 <host> -> UnstableBookGen 1 <host>
1142+
[build] rustc 0 <host> -> Rustbook 1 <host>
1143+
[doc] unstable-book (book) <host>
1144+
[build] llvm <host>
1145+
[build] rustc 0 <host> -> rustc 1 <host>
1146+
[build] rustc 1 <host> -> std 1 <host>
1147+
[doc] book (book) <host>
1148+
[doc] book/first-edition (book) <host>
1149+
[doc] book/second-edition (book) <host>
1150+
[doc] book/2018-edition (book) <host>
1151+
[build] rustdoc 1 <host>
1152+
[doc] rustc 1 <host> -> standalone 2 <host>
1153+
[doc] rustc 1 <host> -> std 1 <host> crates=[alloc,compiler_builtins,core,panic_abort,panic_unwind,proc_macro,rustc-std-workspace-core,std,std_detect,sysroot,test,unwind]
1154+
[doc] rustc 1 <host> -> rustc 2 <host>
1155+
[build] rustc 1 <host> -> rustc 2 <host>
1156+
[doc] rustc 1 <host> -> Rustdoc 2 <host>
1157+
[doc] rustc 1 <host> -> Rustfmt 2 <host>
1158+
[build] rustc 1 <host> -> error-index 2 <host>
1159+
[doc] rustc 1 <host> -> error-index 2 <host>
1160+
[doc] nomicon (book) <host>
1161+
[doc] rustc 1 <host> -> reference (book) 2 <host>
1162+
[doc] rustdoc (book) <host>
1163+
[doc] rust-by-example (book) <host>
1164+
[build] rustc 0 <host> -> LintDocs 1 <host>
1165+
[doc] rustc (book) <host>
1166+
[doc] rustc 1 <host> -> Cargo 2 <host>
1167+
[doc] cargo (book) <host>
1168+
[doc] rustc 1 <host> -> Clippy 2 <host>
1169+
[doc] clippy (book) <host>
1170+
[doc] rustc 1 <host> -> Miri 2 <host>
1171+
[doc] embedded-book (book) <host>
1172+
[doc] edition-guide (book) <host>
1173+
[doc] style-guide (book) <host>
1174+
[build] rustdoc 0 <host>
1175+
[doc] rustc 0 <host> -> Tidy 1 <host>
1176+
[doc] rustc 0 <host> -> Bootstrap 1 <host>
1177+
[doc] rustc 1 <host> -> releases 2 <host>
1178+
[doc] rustc 0 <host> -> RunMakeSupport 1 <host>
1179+
[doc] rustc 0 <host> -> BuildHelper 1 <host>
1180+
[doc] rustc 0 <host> -> Compiletest 1 <host>
1181+
[build] rustc 0 <host> -> RustInstaller 1 <host>
1182+
"
1183+
);
1184+
}
1185+
11331186
#[test]
11341187
fn dist_extended() {
11351188
let ctx = TestCtx::new();
@@ -2473,7 +2526,6 @@ mod snapshot {
24732526
[doc] rustc 0 <host> -> Cargo 1 <host>
24742527
");
24752528
}
2476-
24772529
#[test]
24782530
fn doc_cargo_stage_2() {
24792531
let ctx = TestCtx::new();

0 commit comments

Comments
 (0)