Skip to content

Commit 4510ee3

Browse files
authored
Rollup merge of #124837 - GuillaumeGomez:migrate-rustdoc-map-file, r=jieyouxu
Migrate `run-make/rustdoc-map-file` to rmake Part of #121876. r? `@jieyouxu`
2 parents 9b834d0 + c078a44 commit 4510ee3

File tree

3 files changed

+15
-6
lines changed

3 files changed

+15
-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.
+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
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+
// FIXME (GuillaumeGomez): Port the python script to Rust as well.
13+
let python = std::env::var("PYTHON").unwrap_or("python".into());
14+
assert!(Command::new(python).arg("validate_json.py").arg(&out_dir).status().unwrap().success());
15+
}

0 commit comments

Comments
 (0)