Add snapshot test for disting compiler docs

This commit is contained in:
Jakub Beránek
2025-09-05 16:24:43 +02:00
parent a6aa509687
commit 4375e9d313
+53 -1
View File
@@ -1130,6 +1130,59 @@ fn dist_baseline() {
);
}
#[test]
fn dist_compiler_docs() {
let ctx = TestCtx::new();
insta::assert_snapshot!(
ctx.config("dist")
.path("rustc-docs")
.args(&["--set", "build.compiler-docs=true"])
.render_steps(), @r"
[build] rustc 0 <host> -> UnstableBookGen 1 <host>
[build] rustc 0 <host> -> Rustbook 1 <host>
[doc] unstable-book (book) <host>
[build] llvm <host>
[build] rustc 0 <host> -> rustc 1 <host>
[build] rustc 1 <host> -> std 1 <host>
[doc] book (book) <host>
[doc] book/first-edition (book) <host>
[doc] book/second-edition (book) <host>
[doc] book/2018-edition (book) <host>
[build] rustdoc 1 <host>
[doc] rustc 1 <host> -> standalone 2 <host>
[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]
[doc] rustc 1 <host> -> rustc 2 <host>
[build] rustc 1 <host> -> rustc 2 <host>
[doc] rustc 1 <host> -> Rustdoc 2 <host>
[doc] rustc 1 <host> -> Rustfmt 2 <host>
[build] rustc 1 <host> -> error-index 2 <host>
[doc] rustc 1 <host> -> error-index 2 <host>
[doc] nomicon (book) <host>
[doc] rustc 1 <host> -> reference (book) 2 <host>
[doc] rustdoc (book) <host>
[doc] rust-by-example (book) <host>
[build] rustc 0 <host> -> LintDocs 1 <host>
[doc] rustc (book) <host>
[doc] rustc 1 <host> -> Cargo 2 <host>
[doc] cargo (book) <host>
[doc] rustc 1 <host> -> Clippy 2 <host>
[doc] clippy (book) <host>
[doc] rustc 1 <host> -> Miri 2 <host>
[doc] embedded-book (book) <host>
[doc] edition-guide (book) <host>
[doc] style-guide (book) <host>
[build] rustdoc 0 <host>
[doc] rustc 0 <host> -> Tidy 1 <host>
[doc] rustc 0 <host> -> Bootstrap 1 <host>
[doc] rustc 1 <host> -> releases 2 <host>
[doc] rustc 0 <host> -> RunMakeSupport 1 <host>
[doc] rustc 0 <host> -> BuildHelper 1 <host>
[doc] rustc 0 <host> -> Compiletest 1 <host>
[build] rustc 0 <host> -> RustInstaller 1 <host>
"
);
}
#[test]
fn dist_extended() {
let ctx = TestCtx::new();
@@ -2473,7 +2526,6 @@ fn doc_cargo_stage_1() {
[doc] rustc 0 <host> -> Cargo 1 <host>
");
}
#[test]
fn doc_cargo_stage_2() {
let ctx = TestCtx::new();