Skip to content

Commit 67b3919

Browse files
committed
Replace rustdoc-ui/{c,z}-help tests with a run-make test
This make rustdoc resilient to changes in the debugging options while still testing that it matches rustc.
1 parent bad2af1 commit 67b3919

File tree

5 files changed

+18
-283
lines changed

5 files changed

+18
-283
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
include ../tools.mk
2+
3+
all: z_help c_help list_passes
4+
5+
c_help:
6+
$(RUSTC) -C help > $(TMPDIR)/rustc.c_help.txt
7+
$(RUSTDOC) -C help > $(TMPDIR)/rustdoc.c_help.txt
8+
$(DIFF) $(TMPDIR)/rustc.c_help.txt $(TMPDIR)/rustdoc.c_help.txt
9+
10+
z_help:
11+
$(RUSTC) -Z help > $(TMPDIR)/rustc.z_help.txt
12+
$(RUSTDOC) -Z help > $(TMPDIR)/rustdoc.z_help.txt
13+
$(DIFF) $(TMPDIR)/rustc.z_help.txt $(TMPDIR)/rustdoc.z_help.txt
14+
15+
list_passes:
16+
$(RUSTC) -C passes=list > $(TMPDIR)/rustc.passes.txt
17+
$(RUSTDOC) -C passes=list > $(TMPDIR)/rustdoc.passes.txt
18+
$(DIFF) $(TMPDIR)/rustc.passes.txt $(TMPDIR)/rustdoc.passes.txt

tests/rustdoc-ui/c-help.rs

-6
This file was deleted.

tests/rustdoc-ui/c-help.stdout

-51
This file was deleted.

tests/rustdoc-ui/z-help.rs

-6
This file was deleted.

0 commit comments

Comments
 (0)