Migrate run-make/rustdoc-output-path
to rmake
This commit is contained in:
parent
98dabb622a
commit
24d96fa523
3 changed files with 9 additions and 5 deletions
|
@ -245,7 +245,6 @@ run-make/rlib-format-packed-bundled-libs/Makefile
|
|||
run-make/rmeta-preferred/Makefile
|
||||
run-make/rustc-macro-dep-files/Makefile
|
||||
run-make/rustdoc-io-error/Makefile
|
||||
run-make/rustdoc-output-path/Makefile
|
||||
run-make/rustdoc-scrape-examples-invalid-expr/Makefile
|
||||
run-make/rustdoc-scrape-examples-macros/Makefile
|
||||
run-make/rustdoc-scrape-examples-multiple/Makefile
|
||||
|
|
|
@ -1,4 +0,0 @@
|
|||
include ../tools.mk
|
||||
|
||||
all:
|
||||
$(RUSTDOC) -o "$(TMPDIR)/foo/bar/doc" foo.rs
|
9
tests/run-make/rustdoc-output-path/rmake.rs
Normal file
9
tests/run-make/rustdoc-output-path/rmake.rs
Normal file
|
@ -0,0 +1,9 @@
|
|||
// Checks that if the output folder doesn't exist, rustdoc will create it.
|
||||
|
||||
use run_make_support::{rustdoc, tmp_dir};
|
||||
|
||||
fn main() {
|
||||
let out_dir = tmp_dir().join("foo/bar/doc");
|
||||
rustdoc().input("foo.rs").output(&out_dir).run();
|
||||
assert!(out_dir.exists());
|
||||
}
|
Loading…
Add table
Reference in a new issue