diff options
| author | Guillaume Gomez <guillaume.gomez@huawei.com> | 2024-05-07 10:31:58 +0200 | 
|---|---|---|
| committer | Guillaume Gomez <guillaume.gomez@huawei.com> | 2024-05-08 16:58:12 +0200 | 
| commit | c078a44247d733111d1737dfc0468b105ea91d55 (patch) | |
| tree | 2ff2bdeb6ea67a346a6584dd6a646cb0712322df /tests/run-make/rustdoc-map-file/rmake.rs | |
| parent | 25e3949aa1b24b3f62a72c1f713830aa1d1efcd4 (diff) | |
| download | rust-c078a44247d733111d1737dfc0468b105ea91d55.tar.gz rust-c078a44247d733111d1737dfc0468b105ea91d55.zip  | |
Migrate `run-make/rustdoc-map-file` to rmake
Diffstat (limited to 'tests/run-make/rustdoc-map-file/rmake.rs')
| -rw-r--r-- | tests/run-make/rustdoc-map-file/rmake.rs | 15 | 
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/run-make/rustdoc-map-file/rmake.rs b/tests/run-make/rustdoc-map-file/rmake.rs new file mode 100644 index 00000000000..aaa7fea0b6b --- /dev/null +++ b/tests/run-make/rustdoc-map-file/rmake.rs @@ -0,0 +1,15 @@ +use run_make_support::{rustdoc, tmp_dir}; +use std::process::Command; + +fn main() { + let out_dir = tmp_dir().join("out"); + rustdoc() + .input("foo.rs") + .arg("-Zunstable-options") + .arg("--generate-redirect-map") + .output(&out_dir) + .run(); + // FIXME (GuillaumeGomez): Port the python script to Rust as well. + let python = std::env::var("PYTHON").unwrap_or("python".into()); + assert!(Command::new(python).arg("validate_json.py").arg(&out_dir).status().unwrap().success()); +}  | 
