Skip to content

Commit 1128453

Browse files
Migrate run-make/rustdoc-map-file to rmake
1 parent 25e3949 commit 1128453

File tree

3 files changed

+16
-6
lines changed

3 files changed

+16
-6
lines changed

src/tools/tidy/src/allowed_run_make_makefiles.txt

-1
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,6 @@ run-make/rlib-format-packed-bundled-libs/Makefile
245245
run-make/rmeta-preferred/Makefile
246246
run-make/rustc-macro-dep-files/Makefile
247247
run-make/rustdoc-io-error/Makefile
248-
run-make/rustdoc-map-file/Makefile
249248
run-make/rustdoc-output-path/Makefile
250249
run-make/rustdoc-scrape-examples-invalid-expr/Makefile
251250
run-make/rustdoc-scrape-examples-macros/Makefile

tests/run-make/rustdoc-map-file/Makefile

-5
This file was deleted.
+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
use run_make_support::{rustdoc, tmp_dir};
2+
use std::process::Command;
3+
4+
fn main() {
5+
let out_dir = tmp_dir().join("out");
6+
rustdoc()
7+
.input("foo.rs")
8+
.arg("-Zunstable-options")
9+
.arg("--generate-redirect-map")
10+
.output(&out_dir)
11+
.run();
12+
let python = std::env::var("PYTHON").unwrap_or("python".into());
13+
assert!(
14+
Command::new(python).arg("validate_json.py").arg(&out_dir).status().unwrap().success()
15+
);
16+
}

0 commit comments

Comments
 (0)