2022-08-23 00:00:00 +00:00
|
|
|
include ../tools.mk
|
2018-01-10 05:04:14 +00:00
|
|
|
|
2018-08-19 13:30:23 +00:00
|
|
|
# Test that hir-tree output doesn't crash and includes
|
2018-01-10 05:04:14 +00:00
|
|
|
# the string constant we would expect to see.
|
|
|
|
|
|
|
|
all:
|
|
|
|
$(RUSTDOC) --test input.rs > $(TMPDIR)/output || true
|
2019-04-20 17:03:59 +00:00
|
|
|
$(CGREP) 'input.rs - foo (line 5)' < $(TMPDIR)/output
|
2018-12-25 15:56:47 +00:00
|
|
|
$(CGREP) 'input.rs:7:15' < $(TMPDIR)/output
|
2019-04-20 17:03:59 +00:00
|
|
|
$(CGREP) 'input.rs - bar (line 15)' < $(TMPDIR)/output
|
|
|
|
$(CGREP) 'input.rs:17:15' < $(TMPDIR)/output
|
|
|
|
$(CGREP) 'input.rs - bar (line 24)' < $(TMPDIR)/output
|
|
|
|
$(CGREP) 'input.rs:26:15' < $(TMPDIR)/output
|