Skip to content

Commit

Permalink
Migrate run-make/dep-graph to rmake.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeGomez committed Jun 15, 2024
1 parent 8217b41 commit 8c28df3
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 13 deletions.
1 change: 0 additions & 1 deletion src/tools/tidy/src/allowed_run_make_makefiles.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ run-make/cross-lang-lto-upstream-rlibs/Makefile
run-make/cross-lang-lto/Makefile
run-make/debug-assertions/Makefile
run-make/debugger-visualizer-dep-info/Makefile
run-make/dep-graph/Makefile
run-make/dep-info-doesnt-run-much/Makefile
run-make/dep-info-spaces/Makefile
run-make/dep-info/Makefile
Expand Down
12 changes: 0 additions & 12 deletions tests/run-make/dep-graph/Makefile

This file was deleted.

18 changes: 18 additions & 0 deletions tests/run-make/dep-graph/rmake.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
// Just verify that we successfully run and produce dep graphs when requested.

//@ ignore-cross-compile

use run_make_support::{cwd, rustc};

fn main() {
rustc()
.input("foo.rs")
.incremental(cwd().join("incr"))
.arg("-Zquery-dep-graph")
.arg("-Zdump-dep-graph")
.env("RUST_DEP_GRAPH", cwd().join("dep-graph"))
.run();

assert!(cwd().join("dep-graph.txt").is_file());
assert!(cwd().join("dep-graph.dot").is_file());
}

0 comments on commit 8c28df3

Please sign in to comment.