Skip to content

Commit 8cf3404

Browse files
committed
Add snapshot test for x test
1 parent b7632bd commit 8cf3404

File tree

1 file changed

+71
-1
lines changed

1 file changed

+71
-1
lines changed

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

Lines changed: 71 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1774,6 +1774,76 @@ mod snapshot {
17741774
.render_steps(), @"[check] rustc 0 <host> -> RunMakeSupport 1 <host>");
17751775
}
17761776

1777+
#[test]
1778+
fn test_all() {
1779+
let ctx = TestCtx::new();
1780+
insta::assert_snapshot!(
1781+
ctx.config("test")
1782+
.render_steps(), @r"
1783+
[build] rustc 0 <host> -> Tidy 1 <host>
1784+
[test] tidy <>
1785+
[build] llvm <host>
1786+
[build] rustc 0 <host> -> rustc 1 <host>
1787+
[build] rustc 1 <host> -> std 1 <host>
1788+
[build] rustc 0 <host> -> Compiletest 1 <host>
1789+
[test] Ui <host>
1790+
[test] Crashes <host>
1791+
[build] rustc 0 <host> -> CoverageDump 1 <host>
1792+
[build] rustc 1 <host> -> std 1 <host>
1793+
[test] CodegenLlvm <host>
1794+
[test] CodegenUnits <host>
1795+
[test] AssemblyLlvm <host>
1796+
[test] Incremental <host>
1797+
[test] Debuginfo <host>
1798+
[test] UiFullDeps <host>
1799+
[build] rustdoc 1 <host>
1800+
[test] Rustdoc <host>
1801+
[test] CoverageRunRustdoc <host>
1802+
[test] Pretty <host>
1803+
[build] rustc 1 <host> -> std 1 <host>
1804+
[test] CrateLibrustc <host>
1805+
[build] rustc 1 <host> -> rustc 2 <host>
1806+
[build] rustdoc 0 <host>
1807+
[build] rustc 0 <host> -> UnstableBookGen 1 <host>
1808+
[build] rustc 0 <host> -> Rustbook 1 <host>
1809+
[doc] unstable-book (book) <host>
1810+
[doc] book (book) <host>
1811+
[doc] book/first-edition (book) <host>
1812+
[doc] book/second-edition (book) <host>
1813+
[doc] book/2018-edition (book) <host>
1814+
[doc] rustc 0 <host> -> standalone 1 <host>
1815+
[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]
1816+
[build] rustc 0 <host> -> error-index 1 <host>
1817+
[doc] rustc 0 <host> -> error-index 1 <host>
1818+
[doc] nomicon (book) <host>
1819+
[doc] rustc 1 <host> -> reference (book) 2 <host>
1820+
[doc] rustdoc (book) <host>
1821+
[doc] rust-by-example (book) <host>
1822+
[build] rustc 0 <host> -> LintDocs 1 <host>
1823+
[doc] rustc (book) <host>
1824+
[doc] cargo (book) <host>
1825+
[doc] clippy (book) <host>
1826+
[doc] embedded-book (book) <host>
1827+
[doc] edition-guide (book) <host>
1828+
[doc] style-guide (book) <host>
1829+
[doc] rustc 0 <host> -> releases 1 <host>
1830+
[build] rustc 0 <host> -> Linkchecker 1 <host>
1831+
[test] tier-check <host>
1832+
[doc] rustc (book) <host>
1833+
[doc] rustc 1 <host> -> std 1 <host> crates=[]
1834+
[build] rustc 0 <host> -> RustdocTheme 1 <host>
1835+
[test] RustdocUi <host>
1836+
[build] rustc 0 <host> -> JsonDocCk 1 <host>
1837+
[build] rustc 0 <host> -> JsonDocLint 1 <host>
1838+
[test] RustdocJson <host>
1839+
[doc] rustc 0 <host> -> rustc 1 <host>
1840+
[build] rustc 0 <host> -> HtmlChecker 1 <host>
1841+
[build] rustc 0 <host> -> RunMakeSupport 1 <host>
1842+
[build] rustc 1 <host> -> cargo 2 <host>
1843+
[test] RunMake <host>
1844+
");
1845+
}
1846+
17771847
#[test]
17781848
fn test_exclude() {
17791849
let ctx = TestCtx::new();
@@ -1862,7 +1932,7 @@ mod snapshot {
18621932
.render_steps(), @r"
18631933
[build] llvm <host>
18641934
[build] rustc 0 <host> -> rustc 1 <host>
1865-
[test] rustc 0 <host> -> tier-check 1 <host>
1935+
[test] tier-check <host>
18661936
");
18671937
}
18681938

0 commit comments

Comments
 (0)