Skip to content

Commit 61f64eb

Browse files
committed
Add snapshot test for rustc docs
1 parent 91ee6a4 commit 61f64eb

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

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

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1696,6 +1696,47 @@ mod snapshot {
16961696
");
16971697
}
16981698

1699+
#[test]
1700+
fn dist_rustc_docs() {
1701+
let ctx = TestCtx::new();
1702+
insta::assert_snapshot!(
1703+
ctx
1704+
.config("dist")
1705+
.path("rustc-docs")
1706+
.render_steps(), @r"
1707+
[build] rustc 0 <host> -> UnstableBookGen 1 <host>
1708+
[build] rustc 0 <host> -> Rustbook 1 <host>
1709+
[doc] unstable-book (book) <host>
1710+
[build] llvm <host>
1711+
[build] rustc 0 <host> -> rustc 1 <host>
1712+
[build] rustc 1 <host> -> std 1 <host>
1713+
[doc] book (book) <host>
1714+
[doc] book/first-edition (book) <host>
1715+
[doc] book/second-edition (book) <host>
1716+
[doc] book/2018-edition (book) <host>
1717+
[build] rustdoc 1 <host>
1718+
[doc] rustc 1 <host> -> standalone 2 <host>
1719+
[build] rustc 1 <host> -> rustc 2 <host>
1720+
[build] rustdoc 2 <host>
1721+
[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]
1722+
[build] rustc 1 <host> -> error-index 2 <host>
1723+
[doc] rustc 1 <host> -> error-index 2 <host>
1724+
[doc] nomicon (book) <host>
1725+
[doc] rustc 1 <host> -> reference (book) 2 <host>
1726+
[doc] rustdoc (book) <host>
1727+
[doc] rust-by-example (book) <host>
1728+
[build] rustc 0 <host> -> LintDocs 1 <host>
1729+
[doc] rustc (book) <host>
1730+
[doc] cargo (book) <host>
1731+
[doc] clippy (book) <host>
1732+
[doc] embedded-book (book) <host>
1733+
[doc] edition-guide (book) <host>
1734+
[doc] style-guide (book) <host>
1735+
[doc] rustc 1 <host> -> releases 2 <host>
1736+
[build] rustc 0 <host> -> RustInstaller 1 <host>
1737+
");
1738+
}
1739+
16991740
#[test]
17001741
fn check_compiler_no_explicit_stage() {
17011742
let ctx = TestCtx::new();

0 commit comments

Comments
 (0)