Add a test that -Zquery-dep-graph -Zdump-dep-graph works

This commit is contained in:
Mark Rousskov 2021-10-02 12:23:18 -04:00
parent 6f78eed1c7
commit 415a9a2ea6
2 changed files with 13 additions and 0 deletions

View File

@ -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

View File

@ -0,0 +1 @@
fn main() {}