diff options
| author | Guillaume Gomez <guillaume.gomez@huawei.com> | 2024-06-15 13:00:20 +0200 |
|---|---|---|
| committer | Guillaume Gomez <guillaume.gomez@huawei.com> | 2024-06-15 17:34:43 +0200 |
| commit | a4eaf879823456d5ffa3177a27359b9a2b9134e3 (patch) | |
| tree | feee342295120de960625327180dfa9465fccd0d /tests/run-make/dep-graph | |
| parent | 8217b412a235407243f2516ebc859e7b3af8345a (diff) | |
| download | rust-a4eaf879823456d5ffa3177a27359b9a2b9134e3.tar.gz rust-a4eaf879823456d5ffa3177a27359b9a2b9134e3.zip | |
Migrate `run-make/dep-graph` to `rmake.rs`
Diffstat (limited to 'tests/run-make/dep-graph')
| -rw-r--r-- | tests/run-make/dep-graph/Makefile | 12 | ||||
| -rw-r--r-- | tests/run-make/dep-graph/rmake.rs | 18 |
2 files changed, 18 insertions, 12 deletions
diff --git a/tests/run-make/dep-graph/Makefile b/tests/run-make/dep-graph/Makefile deleted file mode 100644 index d06333f4454..00000000000 --- a/tests/run-make/dep-graph/Makefile +++ /dev/null @@ -1,12 +0,0 @@ -include ../tools.mk - -# ignore-cross-compile - -# Just verify that we successfully run and produce dep graphs when requested. - -all: - RUST_DEP_GRAPH=$(TMPDIR)/dep-graph $(RUSTC) \ - -Cincremental=$(TMPDIR)/incr \ - -Zquery-dep-graph -Zdump-dep-graph foo.rs - test -f $(TMPDIR)/dep-graph.txt - test -f $(TMPDIR)/dep-graph.dot diff --git a/tests/run-make/dep-graph/rmake.rs b/tests/run-make/dep-graph/rmake.rs new file mode 100644 index 00000000000..351418997f1 --- /dev/null +++ b/tests/run-make/dep-graph/rmake.rs @@ -0,0 +1,18 @@ +// Just verify that we successfully run and produce dep graphs when requested. + +//@ ignore-cross-compile + +use run_make_support::{path, rustc}; + +fn main() { + rustc() + .input("foo.rs") + .incremental(path("incr")) + .arg("-Zquery-dep-graph") + .arg("-Zdump-dep-graph") + .env("RUST_DEP_GRAPH", path("dep-graph")) + .run(); + + assert!(path("dep-graph.txt").is_file()); + assert!(path("dep-graph.dot").is_file()); +} |
