]> git.lizzy.rs Git - rust.git/blob - src/test/run-make-fulldeps/rustdoc-determinism/Makefile
Rollup merge of #98111 - eggyal:issue-97982, r=GuillaumeGomez
[rust.git] / src / test / run-make-fulldeps / rustdoc-determinism / Makefile
1 include ../tools.mk
2
3 # Assert that the search index is generated deterministically, regardless of the
4 # order that crates are documented in.
5
6 # ignore-windows
7 # Uses `diff`.
8
9 all:
10         $(RUSTDOC) foo.rs -o $(TMPDIR)/foo_first
11         $(RUSTDOC) bar.rs -o $(TMPDIR)/foo_first
12
13         $(RUSTDOC) bar.rs -o $(TMPDIR)/bar_first
14         $(RUSTDOC) foo.rs -o $(TMPDIR)/bar_first
15
16         diff $(TMPDIR)/foo_first/search-index.js $(TMPDIR)/bar_first/search-index.js