Add snapshot test for rustc docs
This commit is contained in:
parent
269d5b56bc
commit
c2e5c21223
1 changed files with 41 additions and 0 deletions
|
|
@ -1724,6 +1724,47 @@ mod snapshot {
|
|||
");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn dist_rustc_docs() {
|
||||
let ctx = TestCtx::new();
|
||||
insta::assert_snapshot!(
|
||||
ctx
|
||||
.config("dist")
|
||||
.path("rustc-docs")
|
||||
.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>
|
||||
[build] rustc 1 <host> -> rustc 2 <host>
|
||||
[build] rustdoc 2 <host>
|
||||
[doc] rustc 2 <host> -> std 2 <host> crates=[alloc,compiler_builtins,core,panic_abort,panic_unwind,proc_macro,rustc-std-workspace-core,std,std_detect,sysroot,test,unwind]
|
||||
[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] cargo (book) <host>
|
||||
[doc] clippy (book) <host>
|
||||
[doc] embedded-book (book) <host>
|
||||
[doc] edition-guide (book) <host>
|
||||
[doc] style-guide (book) <host>
|
||||
[doc] rustc 1 <host> -> releases 2 <host>
|
||||
[build] rustc 0 <host> -> RustInstaller 1 <host>
|
||||
");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn check_compiler_no_explicit_stage() {
|
||||
let ctx = TestCtx::new();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue