Migrate run-make/rustdoc-target-spec-json-path
to rmake
This commit is contained in:
parent
4057a7b1e3
commit
b515de83af
3 changed files with 14 additions and 10 deletions
14
tests/run-make/rustdoc-target-spec-json-path/rmake.rs
Normal file
14
tests/run-make/rustdoc-target-spec-json-path/rmake.rs
Normal file
|
@ -0,0 +1,14 @@
|
|||
// Test that rustdoc will properly canonicalize the target spec json path just like rustc.
|
||||
|
||||
use run_make_support::{rustc, rustdoc, tmp_dir};
|
||||
|
||||
fn main() {
|
||||
let out_dir = tmp_dir().join("rustdoc-target-spec-json-path");
|
||||
rustc().crate_type("lib").input("dummy_core.rs").target("target.json").run();
|
||||
rustdoc()
|
||||
.input("my_crate.rs")
|
||||
.output(out_dir)
|
||||
.library_search_path(tmp_dir())
|
||||
.target("target.json")
|
||||
.run();
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue