diff options
| author | Guillaume Gomez <guillaume.gomez@huawei.com> | 2024-05-24 11:19:30 +0200 | 
|---|---|---|
| committer | Guillaume Gomez <guillaume.gomez@huawei.com> | 2024-05-24 11:19:30 +0200 | 
| commit | daff84372d67fe39e13b35fdcd3f6f4267a0063a (patch) | |
| tree | 0274733383c704ff7048c547ac18960dc726d311 /tests/run-make/rustdoc-with-output-option/rmake.rs | |
| parent | 7c547894c76efe9303caa3108754674c39bd901d (diff) | |
| download | rust-daff84372d67fe39e13b35fdcd3f6f4267a0063a.tar.gz rust-daff84372d67fe39e13b35fdcd3f6f4267a0063a.zip  | |
Migrate `run-make/rustdoc-with-output-dir-option` to `rmake.rs`
Diffstat (limited to 'tests/run-make/rustdoc-with-output-option/rmake.rs')
| -rw-r--r-- | tests/run-make/rustdoc-with-output-option/rmake.rs | 16 | 
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/run-make/rustdoc-with-output-option/rmake.rs b/tests/run-make/rustdoc-with-output-option/rmake.rs new file mode 100644 index 00000000000..1a009419273 --- /dev/null +++ b/tests/run-make/rustdoc-with-output-option/rmake.rs @@ -0,0 +1,16 @@ +use run_make_support::{htmldocck, rustdoc, tmp_dir}; + +fn main() { + let out_dir = tmp_dir().join("rustdoc"); + + rustdoc() + .input("src/lib.rs") + .crate_name("foobar") + .crate_type("lib") + // This is intentionally using `--output` option flag and not the `output()` method. + .arg("--output") + .arg(&out_dir) + .run(); + + assert!(htmldocck().arg(out_dir).arg("src/lib.rs").status().unwrap().success()); +}  | 
