Skip to content

Commit a4eaf87

Browse files
Migrate run-make/dep-graph to rmake.rs
1 parent 8217b41 commit a4eaf87

File tree

3 files changed

+18
-13
lines changed

3 files changed

+18
-13
lines changed

src/tools/tidy/src/allowed_run_make_makefiles.txt

-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ run-make/cross-lang-lto-upstream-rlibs/Makefile
2525
run-make/cross-lang-lto/Makefile
2626
run-make/debug-assertions/Makefile
2727
run-make/debugger-visualizer-dep-info/Makefile
28-
run-make/dep-graph/Makefile
2928
run-make/dep-info-doesnt-run-much/Makefile
3029
run-make/dep-info-spaces/Makefile
3130
run-make/dep-info/Makefile

tests/run-make/dep-graph/Makefile

-12
This file was deleted.

tests/run-make/dep-graph/rmake.rs

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
// Just verify that we successfully run and produce dep graphs when requested.
2+
3+
//@ ignore-cross-compile
4+
5+
use run_make_support::{path, rustc};
6+
7+
fn main() {
8+
rustc()
9+
.input("foo.rs")
10+
.incremental(path("incr"))
11+
.arg("-Zquery-dep-graph")
12+
.arg("-Zdump-dep-graph")
13+
.env("RUST_DEP_GRAPH", path("dep-graph"))
14+
.run();
15+
16+
assert!(path("dep-graph.txt").is_file());
17+
assert!(path("dep-graph.dot").is_file());
18+
}

0 commit comments

Comments
 (0)