Skip to content

Commit 8404bbe

Browse files
Migrate run-make/rustdoc-shared-flags to rmake
1 parent be7549f commit 8404bbe

File tree

3 files changed

+14
-19
lines changed

3 files changed

+14
-19
lines changed

src/tools/tidy/src/allowed_run_make_makefiles.txt

-1
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,6 @@ run-make/rustdoc-scrape-examples-ordering/Makefile
252252
run-make/rustdoc-scrape-examples-remap/Makefile
253253
run-make/rustdoc-scrape-examples-test/Makefile
254254
run-make/rustdoc-scrape-examples-whitespace/Makefile
255-
run-make/rustdoc-shared-flags/Makefile
256255
run-make/rustdoc-target-spec-json-path/Makefile
257256
run-make/rustdoc-themes/Makefile
258257
run-make/rustdoc-verify-output-files/Makefile

tests/run-make/rustdoc-shared-flags/Makefile

-18
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
use run_make_support::{Diff, rustc, rustdoc};
2+
3+
fn compare_outputs(args: &[&str]) {
4+
let rustc_output = String::from_utf8(rustc().args(args).command_output().stdout).unwrap();
5+
let rustdoc_output = String::from_utf8(rustdoc().args(args).command_output().stdout).unwrap();
6+
7+
Diff::new().expected_text("rustc", rustc_output).actual_text("rustdoc", rustdoc_output).run();
8+
}
9+
10+
fn main() {
11+
compare_outputs(&["-C", "help"]);
12+
compare_outputs(&["-Z", "help"]);
13+
compare_outputs(&["-C", "passes=list"]);
14+
}

0 commit comments

Comments
 (0)