Skip to content

Commit a223343

Browse files
committed
Make install test target independent
1 parent ffca2f0 commit a223343

File tree

1 file changed

+61
-55
lines changed

1 file changed

+61
-55
lines changed

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

Lines changed: 61 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -2857,63 +2857,69 @@ mod snapshot {
28572857
// Using backslashes fails with `--set`
28582858
"--set", &format!("install.prefix={}", ctx.dir().display()).replace("\\", "/"),
28592859
"--set", &format!("install.sysconfdir={}", ctx.dir().display()).replace("\\", "/"),
2860-
"--set", "build.extended=true"
2860+
"--set", "build.extended=true",
2861+
// For Cranelift to be disted
2862+
"--build", "x86_64-unknown-linux-gnu",
2863+
"--host", "x86_64-unknown-linux-gnu"
28612864
])
2862-
.render_steps(), @r"
2863-
[build] llvm <host>
2864-
[build] rustc 0 <host> -> rustc 1 <host>
2865-
[build] rustc 0 <host> -> WasmComponentLd 1 <host>
2866-
[build] rustc 0 <host> -> UnstableBookGen 1 <host>
2867-
[build] rustc 0 <host> -> Rustbook 1 <host>
2868-
[doc] unstable-book (book) <host>
2869-
[build] rustc 1 <host> -> std 1 <host>
2870-
[doc] book (book) <host>
2871-
[doc] book/first-edition (book) <host>
2872-
[doc] book/second-edition (book) <host>
2873-
[doc] book/2018-edition (book) <host>
2874-
[build] rustdoc 1 <host>
2875-
[doc] rustc 1 <host> -> standalone 2 <host>
2876-
[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]
2877-
[build] rustc 1 <host> -> rustc 2 <host>
2878-
[build] rustc 1 <host> -> WasmComponentLd 2 <host>
2879-
[build] rustc 1 <host> -> error-index 2 <host>
2880-
[doc] rustc 1 <host> -> error-index 2 <host>
2881-
[doc] nomicon (book) <host>
2882-
[doc] rustc 1 <host> -> reference (book) 2 <host>
2883-
[doc] rustdoc (book) <host>
2884-
[doc] rust-by-example (book) <host>
2885-
[build] rustc 0 <host> -> LintDocs 1 <host>
2886-
[doc] rustc (book) <host>
2887-
[doc] cargo (book) <host>
2888-
[doc] clippy (book) <host>
2889-
[doc] embedded-book (book) <host>
2890-
[doc] edition-guide (book) <host>
2891-
[doc] style-guide (book) <host>
2892-
[doc] rustc 1 <host> -> releases 2 <host>
2893-
[build] rustc 0 <host> -> RustInstaller 1 <host>
2894-
[dist] docs <host>
2895-
[dist] rustc 1 <host> -> std 1 <host>
2896-
[build] rustdoc 2 <host>
2897-
[build] rustc 1 <host> -> rust-analyzer-proc-macro-srv 2 <host>
2898-
[build] rustc 0 <host> -> GenerateCopyright 1 <host>
2899-
[dist] rustc <host>
2900-
[build] rustc 1 <host> -> cargo 2 <host>
2901-
[dist] rustc 1 <host> -> cargo 2 <host>
2902-
[build] rustc 1 <host> -> rust-analyzer 2 <host>
2903-
[dist] rustc 1 <host> -> rust-analyzer 2 <host>
2904-
[build] rustc 1 <host> -> rustfmt 2 <host>
2905-
[build] rustc 1 <host> -> cargo-fmt 2 <host>
2906-
[dist] rustc 1 <host> -> rustfmt 2 <host>
2907-
[build] rustc 1 <host> -> clippy-driver 2 <host>
2908-
[build] rustc 1 <host> -> cargo-clippy 2 <host>
2909-
[dist] rustc 1 <host> -> clippy 2 <host>
2910-
[build] rustc 1 <host> -> miri 2 <host>
2911-
[build] rustc 1 <host> -> cargo-miri 2 <host>
2912-
[dist] rustc 1 <host> -> miri 2 <host>
2865+
.get_steps()
2866+
.render_with(RenderConfig {
2867+
normalize_host: false
2868+
}), @r"
2869+
[build] llvm <x86_64-unknown-linux-gnu>
2870+
[build] rustc 0 <x86_64-unknown-linux-gnu> -> rustc 1 <x86_64-unknown-linux-gnu>
2871+
[build] rustc 0 <x86_64-unknown-linux-gnu> -> WasmComponentLd 1 <x86_64-unknown-linux-gnu>
2872+
[build] rustc 0 <x86_64-unknown-linux-gnu> -> UnstableBookGen 1 <x86_64-unknown-linux-gnu>
2873+
[build] rustc 0 <x86_64-unknown-linux-gnu> -> Rustbook 1 <x86_64-unknown-linux-gnu>
2874+
[doc] unstable-book (book) <x86_64-unknown-linux-gnu>
2875+
[build] rustc 1 <x86_64-unknown-linux-gnu> -> std 1 <x86_64-unknown-linux-gnu>
2876+
[doc] book (book) <x86_64-unknown-linux-gnu>
2877+
[doc] book/first-edition (book) <x86_64-unknown-linux-gnu>
2878+
[doc] book/second-edition (book) <x86_64-unknown-linux-gnu>
2879+
[doc] book/2018-edition (book) <x86_64-unknown-linux-gnu>
2880+
[build] rustdoc 1 <x86_64-unknown-linux-gnu>
2881+
[doc] rustc 1 <x86_64-unknown-linux-gnu> -> standalone 2 <x86_64-unknown-linux-gnu>
2882+
[doc] rustc 1 <x86_64-unknown-linux-gnu> -> std 1 <x86_64-unknown-linux-gnu> crates=[alloc,compiler_builtins,core,panic_abort,panic_unwind,proc_macro,rustc-std-workspace-core,std,std_detect,sysroot,test,unwind]
2883+
[build] rustc 1 <x86_64-unknown-linux-gnu> -> rustc 2 <x86_64-unknown-linux-gnu>
2884+
[build] rustc 1 <x86_64-unknown-linux-gnu> -> WasmComponentLd 2 <x86_64-unknown-linux-gnu>
2885+
[build] rustc 1 <x86_64-unknown-linux-gnu> -> error-index 2 <x86_64-unknown-linux-gnu>
2886+
[doc] rustc 1 <x86_64-unknown-linux-gnu> -> error-index 2 <x86_64-unknown-linux-gnu>
2887+
[doc] nomicon (book) <x86_64-unknown-linux-gnu>
2888+
[doc] rustc 1 <x86_64-unknown-linux-gnu> -> reference (book) 2 <x86_64-unknown-linux-gnu>
2889+
[doc] rustdoc (book) <x86_64-unknown-linux-gnu>
2890+
[doc] rust-by-example (book) <x86_64-unknown-linux-gnu>
2891+
[build] rustc 0 <x86_64-unknown-linux-gnu> -> LintDocs 1 <x86_64-unknown-linux-gnu>
2892+
[doc] rustc (book) <x86_64-unknown-linux-gnu>
2893+
[doc] cargo (book) <x86_64-unknown-linux-gnu>
2894+
[doc] clippy (book) <x86_64-unknown-linux-gnu>
2895+
[doc] embedded-book (book) <x86_64-unknown-linux-gnu>
2896+
[doc] edition-guide (book) <x86_64-unknown-linux-gnu>
2897+
[doc] style-guide (book) <x86_64-unknown-linux-gnu>
2898+
[doc] rustc 1 <x86_64-unknown-linux-gnu> -> releases 2 <x86_64-unknown-linux-gnu>
2899+
[build] rustc 0 <x86_64-unknown-linux-gnu> -> RustInstaller 1 <x86_64-unknown-linux-gnu>
2900+
[dist] docs <x86_64-unknown-linux-gnu>
2901+
[dist] rustc 1 <x86_64-unknown-linux-gnu> -> std 1 <x86_64-unknown-linux-gnu>
2902+
[build] rustdoc 2 <x86_64-unknown-linux-gnu>
2903+
[build] rustc 1 <x86_64-unknown-linux-gnu> -> rust-analyzer-proc-macro-srv 2 <x86_64-unknown-linux-gnu>
2904+
[build] rustc 0 <x86_64-unknown-linux-gnu> -> GenerateCopyright 1 <x86_64-unknown-linux-gnu>
2905+
[dist] rustc <x86_64-unknown-linux-gnu>
2906+
[build] rustc 1 <x86_64-unknown-linux-gnu> -> cargo 2 <x86_64-unknown-linux-gnu>
2907+
[dist] rustc 1 <x86_64-unknown-linux-gnu> -> cargo 2 <x86_64-unknown-linux-gnu>
2908+
[build] rustc 1 <x86_64-unknown-linux-gnu> -> rust-analyzer 2 <x86_64-unknown-linux-gnu>
2909+
[dist] rustc 1 <x86_64-unknown-linux-gnu> -> rust-analyzer 2 <x86_64-unknown-linux-gnu>
2910+
[build] rustc 1 <x86_64-unknown-linux-gnu> -> rustfmt 2 <x86_64-unknown-linux-gnu>
2911+
[build] rustc 1 <x86_64-unknown-linux-gnu> -> cargo-fmt 2 <x86_64-unknown-linux-gnu>
2912+
[dist] rustc 1 <x86_64-unknown-linux-gnu> -> rustfmt 2 <x86_64-unknown-linux-gnu>
2913+
[build] rustc 1 <x86_64-unknown-linux-gnu> -> clippy-driver 2 <x86_64-unknown-linux-gnu>
2914+
[build] rustc 1 <x86_64-unknown-linux-gnu> -> cargo-clippy 2 <x86_64-unknown-linux-gnu>
2915+
[dist] rustc 1 <x86_64-unknown-linux-gnu> -> clippy 2 <x86_64-unknown-linux-gnu>
2916+
[build] rustc 1 <x86_64-unknown-linux-gnu> -> miri 2 <x86_64-unknown-linux-gnu>
2917+
[build] rustc 1 <x86_64-unknown-linux-gnu> -> cargo-miri 2 <x86_64-unknown-linux-gnu>
2918+
[dist] rustc 1 <x86_64-unknown-linux-gnu> -> miri 2 <x86_64-unknown-linux-gnu>
29132919
[dist] src <>
2914-
[build] rustc 1 <host> -> rustc_codegen_cranelift 2 <host>
2915-
[dist] rustc 1 <host> -> rustc_codegen_cranelift 2 <host>
2916-
[build] rustc 1 <host> -> LlvmBitcodeLinker 2 <host>
2920+
[build] rustc 1 <x86_64-unknown-linux-gnu> -> rustc_codegen_cranelift 2 <x86_64-unknown-linux-gnu>
2921+
[dist] rustc 1 <x86_64-unknown-linux-gnu> -> rustc_codegen_cranelift 2 <x86_64-unknown-linux-gnu>
2922+
[build] rustc 1 <x86_64-unknown-linux-gnu> -> LlvmBitcodeLinker 2 <x86_64-unknown-linux-gnu>
29172923
");
29182924
}
29192925

0 commit comments

Comments
 (0)