Add snapshot test for cross-compilation cargo build

This commit is contained in:
Jakub Beránek 2025-08-08 08:56:51 +02:00
parent 67d45f49e0
commit 3abe5f9dbe
No known key found for this signature in database
GPG key ID: 909CD0D26483516B

View file

@ -975,6 +975,21 @@ mod snapshot {
.render_steps(), @"[build] rustc 0 <host> -> cargo 1 <host>");
}
#[test]
fn build_cargo_cross() {
let ctx = TestCtx::new();
insta::assert_snapshot!(
ctx.config("build")
.paths(&["cargo"])
.hosts(&[TEST_TRIPLE_1])
.render_steps(), @r"
[build] llvm <host>
[build] rustc 0 <host> -> rustc 1 <host>
[build] rustc 1 <host> -> std 1 <target1>
[build] rustc 1 <host> -> cargo 2 <target1>
");
}
#[test]
fn dist_default_stage() {
let ctx = TestCtx::new();