Add doc cross-compilation test

This commit is contained in:
Jakub Beránek 2025-07-09 10:26:36 +02:00
parent 566dc98d2a
commit 6c38d389f2
No known key found for this signature in database
GPG key ID: 909CD0D26483516B

View file

@ -1579,6 +1579,22 @@ mod snapshot {
[doc] std 1 <host> crates=[alloc,core]
");
}
#[test]
fn doc_library_no_std_target_cross_compile() {
let ctx = TestCtx::new();
insta::assert_snapshot!(
ctx.config("doc")
.path("library")
.targets(&[TEST_TRIPLE_1])
.override_target_no_std(TEST_TRIPLE_1)
.render_steps(), @r"
[build] llvm <host>
[build] rustc 0 <host> -> rustc 1 <host>
[build] rustdoc 0 <host>
[doc] std 1 <target1> crates=[alloc,core]
");
}
}
struct ExecutedSteps {