diff options
| author | Mark Rousskov <mark.simulacrum@gmail.com> | 2021-10-02 12:23:18 -0400 |
|---|---|---|
| committer | Mark Rousskov <mark.simulacrum@gmail.com> | 2021-10-09 08:13:53 -0400 |
| commit | 415a9a2ea69e917c5af69a484a602010ccf67198 (patch) | |
| tree | cb30ee5d1a2db7afc656180f807e691aa0723e2a | |
| parent | 6f78eed1c75bf6e42a2e7db125111bad155893b9 (diff) | |
| download | rust-415a9a2ea69e917c5af69a484a602010ccf67198.tar.gz rust-415a9a2ea69e917c5af69a484a602010ccf67198.zip | |
Add a test that -Zquery-dep-graph -Zdump-dep-graph works
| -rw-r--r-- | src/test/run-make/dep-graph/Makefile | 12 | ||||
| -rw-r--r-- | src/test/run-make/dep-graph/foo.rs | 1 |
2 files changed, 13 insertions, 0 deletions
diff --git a/src/test/run-make/dep-graph/Makefile b/src/test/run-make/dep-graph/Makefile new file mode 100644 index 00000000000..88916022c7c --- /dev/null +++ b/src/test/run-make/dep-graph/Makefile @@ -0,0 +1,12 @@ +-include ../../run-make-fulldeps/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/src/test/run-make/dep-graph/foo.rs b/src/test/run-make/dep-graph/foo.rs new file mode 100644 index 00000000000..f328e4d9d04 --- /dev/null +++ b/src/test/run-make/dep-graph/foo.rs @@ -0,0 +1 @@ +fn main() {} |
