Skip to content

Commit 9185529

Browse files
committed
Add snapshot test for x test
1 parent bb51abd commit 9185529

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
@@ -1851,6 +1851,76 @@ mod snapshot {
18511851
.render_steps(), @"[check] rustc 0 <host> -> RunMakeSupport 1 <host>");
18521852
}
18531853

1854+
#[test]
1855+
fn test_all() {
1856+
let ctx = TestCtx::new();
1857+
insta::assert_snapshot!(
1858+
ctx.config("test")
1859+
.render_steps(), @r"
1860+
[build] rustc 0 <host> -> Tidy 1 <host>
1861+
[test] tidy <>
1862+
[build] llvm <host>
1863+
[build] rustc 0 <host> -> rustc 1 <host>
1864+
[build] rustc 1 <host> -> std 1 <host>
1865+
[build] rustc 0 <host> -> Compiletest 1 <host>
1866+
[test] Ui <host>
1867+
[test] Crashes <host>
1868+
[build] rustc 0 <host> -> CoverageDump 1 <host>
1869+
[build] rustc 1 <host> -> std 1 <host>
1870+
[test] CodegenLlvm <host>
1871+
[test] CodegenUnits <host>
1872+
[test] AssemblyLlvm <host>
1873+
[test] Incremental <host>
1874+
[test] Debuginfo <host>
1875+
[test] UiFullDeps <host>
1876+
[build] rustdoc 1 <host>
1877+
[test] Rustdoc <host>
1878+
[test] CoverageRunRustdoc <host>
1879+
[test] Pretty <host>
1880+
[build] rustc 1 <host> -> std 1 <host>
1881+
[test] CrateLibrustc <host>
1882+
[build] rustc 1 <host> -> rustc 2 <host>
1883+
[build] rustdoc 0 <host>
1884+
[build] rustc 0 <host> -> UnstableBookGen 1 <host>
1885+
[build] rustc 0 <host> -> Rustbook 1 <host>
1886+
[doc] unstable-book (book) <host>
1887+
[doc] book (book) <host>
1888+
[doc] book/first-edition (book) <host>
1889+
[doc] book/second-edition (book) <host>
1890+
[doc] book/2018-edition (book) <host>
1891+
[doc] rustc 0 <host> -> standalone 1 <host>
1892+
[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]
1893+
[build] rustc 0 <host> -> error-index 1 <host>
1894+
[doc] rustc 0 <host> -> error-index 1 <host>
1895+
[doc] nomicon (book) <host>
1896+
[doc] rustc 1 <host> -> reference (book) 2 <host>
1897+
[doc] rustdoc (book) <host>
1898+
[doc] rust-by-example (book) <host>
1899+
[build] rustc 0 <host> -> LintDocs 1 <host>
1900+
[doc] rustc (book) <host>
1901+
[doc] cargo (book) <host>
1902+
[doc] clippy (book) <host>
1903+
[doc] embedded-book (book) <host>
1904+
[doc] edition-guide (book) <host>
1905+
[doc] style-guide (book) <host>
1906+
[doc] rustc 0 <host> -> releases 1 <host>
1907+
[build] rustc 0 <host> -> Linkchecker 1 <host>
1908+
[test] tier-check <host>
1909+
[doc] rustc (book) <host>
1910+
[doc] rustc 1 <host> -> std 1 <host> crates=[]
1911+
[build] rustc 0 <host> -> RustdocTheme 1 <host>
1912+
[test] RustdocUi <host>
1913+
[build] rustc 0 <host> -> JsonDocCk 1 <host>
1914+
[build] rustc 0 <host> -> JsonDocLint 1 <host>
1915+
[test] RustdocJson <host>
1916+
[doc] rustc 0 <host> -> rustc 1 <host>
1917+
[build] rustc 0 <host> -> HtmlChecker 1 <host>
1918+
[build] rustc 0 <host> -> RunMakeSupport 1 <host>
1919+
[build] rustc 1 <host> -> cargo 2 <host>
1920+
[test] RunMake <host>
1921+
");
1922+
}
1923+
18541924
#[test]
18551925
fn test_exclude() {
18561926
let ctx = TestCtx::new();
@@ -1939,7 +2009,7 @@ mod snapshot {
19392009
.render_steps(), @r"
19402010
[build] llvm <host>
19412011
[build] rustc 0 <host> -> rustc 1 <host>
1942-
[test] rustc 0 <host> -> tier-check 1 <host>
2012+
[test] tier-check <host>
19432013
");
19442014
}
19452015

0 commit comments

Comments
 (0)