parent
f844ea1e56
commit
95bf7b7dac
3 changed files with 18 additions and 0 deletions
16
src/test/run-make-fulldeps/rustdoc-determinism/Makefile
Normal file
16
src/test/run-make-fulldeps/rustdoc-determinism/Makefile
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
-include ../tools.mk
|
||||||
|
|
||||||
|
# Assert that the search index is generated deterministically, regardless of the
|
||||||
|
# order that crates are documented in.
|
||||||
|
|
||||||
|
# ignore-windows
|
||||||
|
# Uses `diff`.
|
||||||
|
|
||||||
|
all:
|
||||||
|
$(RUSTDOC) foo.rs -o $(TMPDIR)/foo_first
|
||||||
|
$(RUSTDOC) bar.rs -o $(TMPDIR)/foo_first
|
||||||
|
|
||||||
|
$(RUSTDOC) bar.rs -o $(TMPDIR)/bar_first
|
||||||
|
$(RUSTDOC) foo.rs -o $(TMPDIR)/bar_first
|
||||||
|
|
||||||
|
diff $(TMPDIR)/foo_first/search-index.js $(TMPDIR)/bar_first/search-index.js
|
1
src/test/run-make-fulldeps/rustdoc-determinism/bar.rs
Normal file
1
src/test/run-make-fulldeps/rustdoc-determinism/bar.rs
Normal file
|
@ -0,0 +1 @@
|
||||||
|
pub struct Bar;
|
1
src/test/run-make-fulldeps/rustdoc-determinism/foo.rs
Normal file
1
src/test/run-make-fulldeps/rustdoc-determinism/foo.rs
Normal file
|
@ -0,0 +1 @@
|
||||||
|
pub struct Foo;
|
Loading…
Add table
Add a link
Reference in a new issue