Add doc cross-compilation test
This commit is contained in:
parent
566dc98d2a
commit
6c38d389f2
1 changed files with 16 additions and 0 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue