Skip to content

Commit f0d15d3

Browse files
committed
Add snapshot test for x test
1 parent 542e750 commit f0d15d3

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
@@ -2037,6 +2037,76 @@ mod snapshot {
20372037
.render_steps(), @"[check] rustc 0 <host> -> RunMakeSupport 1 <host>");
20382038
}
20392039

2040+
#[test]
2041+
fn test_all() {
2042+
let ctx = TestCtx::new();
2043+
insta::assert_snapshot!(
2044+
ctx.config("test")
2045+
.render_steps(), @r"
2046+
[build] rustc 0 <host> -> Tidy 1 <host>
2047+
[test] tidy <>
2048+
[build] llvm <host>
2049+
[build] rustc 0 <host> -> rustc 1 <host>
2050+
[build] rustc 1 <host> -> std 1 <host>
2051+
[build] rustc 0 <host> -> Compiletest 1 <host>
2052+
[test] Ui <host>
2053+
[test] Crashes <host>
2054+
[build] rustc 0 <host> -> CoverageDump 1 <host>
2055+
[build] rustc 1 <host> -> std 1 <host>
2056+
[test] CodegenLlvm <host>
2057+
[test] CodegenUnits <host>
2058+
[test] AssemblyLlvm <host>
2059+
[test] Incremental <host>
2060+
[test] Debuginfo <host>
2061+
[test] UiFullDeps <host>
2062+
[build] rustdoc 1 <host>
2063+
[test] Rustdoc <host>
2064+
[test] CoverageRunRustdoc <host>
2065+
[test] Pretty <host>
2066+
[build] rustc 1 <host> -> std 1 <host>
2067+
[test] CrateLibrustc <host>
2068+
[build] rustc 1 <host> -> rustc 2 <host>
2069+
[build] rustdoc 0 <host>
2070+
[build] rustc 0 <host> -> UnstableBookGen 1 <host>
2071+
[build] rustc 0 <host> -> Rustbook 1 <host>
2072+
[doc] unstable-book (book) <host>
2073+
[doc] book (book) <host>
2074+
[doc] book/first-edition (book) <host>
2075+
[doc] book/second-edition (book) <host>
2076+
[doc] book/2018-edition (book) <host>
2077+
[doc] rustc 0 <host> -> standalone 1 <host>
2078+
[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]
2079+
[build] rustc 0 <host> -> error-index 1 <host>
2080+
[doc] rustc 0 <host> -> error-index 1 <host>
2081+
[doc] nomicon (book) <host>
2082+
[doc] rustc 1 <host> -> reference (book) 2 <host>
2083+
[doc] rustdoc (book) <host>
2084+
[doc] rust-by-example (book) <host>
2085+
[build] rustc 0 <host> -> LintDocs 1 <host>
2086+
[doc] rustc (book) <host>
2087+
[doc] cargo (book) <host>
2088+
[doc] clippy (book) <host>
2089+
[doc] embedded-book (book) <host>
2090+
[doc] edition-guide (book) <host>
2091+
[doc] style-guide (book) <host>
2092+
[doc] rustc 0 <host> -> releases 1 <host>
2093+
[build] rustc 0 <host> -> Linkchecker 1 <host>
2094+
[test] tier-check <host>
2095+
[doc] rustc (book) <host>
2096+
[doc] rustc 1 <host> -> std 1 <host> crates=[]
2097+
[build] rustc 0 <host> -> RustdocTheme 1 <host>
2098+
[test] RustdocUi <host>
2099+
[build] rustc 0 <host> -> JsonDocCk 1 <host>
2100+
[build] rustc 0 <host> -> JsonDocLint 1 <host>
2101+
[test] RustdocJson <host>
2102+
[doc] rustc 0 <host> -> rustc 1 <host>
2103+
[build] rustc 0 <host> -> HtmlChecker 1 <host>
2104+
[build] rustc 0 <host> -> RunMakeSupport 1 <host>
2105+
[build] rustc 1 <host> -> cargo 2 <host>
2106+
[test] RunMake <host>
2107+
");
2108+
}
2109+
20402110
#[test]
20412111
fn test_exclude() {
20422112
let ctx = TestCtx::new();
@@ -2125,7 +2195,7 @@ mod snapshot {
21252195
.render_steps(), @r"
21262196
[build] llvm <host>
21272197
[build] rustc 0 <host> -> rustc 1 <host>
2128-
[test] rustc 0 <host> -> tier-check 1 <host>
2198+
[test] tier-check <host>
21292199
");
21302200
}
21312201

0 commit comments

Comments
 (0)