mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-15 20:45:45 +03:00
Add snapshot test for disting compiler docs
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user