Skip to content

Commit

Permalink
Move rustdoc run-make-fulldeps tests to run-make
Browse files Browse the repository at this point in the history
This cuts the time to run the tests in half, because they don't require
building a stage 2 compiler.

This doesn't change coverage tests, which will be changed soon in a
separate PR.
  • Loading branch information
jyn514 committed Apr 16, 2021
1 parent 9c3b66c commit ed8ac0c
Show file tree
Hide file tree
Showing 27 changed files with 7 additions and 13 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-include ../tools.mk
include ../../run-make-fulldeps/tools.mk

all:
$(RUSTC) success.rs; [ $$? -eq 0 ]
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-include ../tools.mk
include ../../run-make-fulldeps/tools.mk

all: foo.rs
$(RUSTC) --cfg 'feature="bar"' --crate-type lib foo.rs
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-include ../tools.mk
include ../../run-make-fulldeps/tools.mk

all:
$(RUSTC) foo.rs; $(RUSTC) bar.rs
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-include ../tools.mk
include ../../run-make-fulldeps/tools.mk

# Assert that the search index is generated deterministically, regardless of the
# order that crates are documented in.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-include ../tools.mk
include ../../run-make-fulldeps/tools.mk

# Test that hir-tree output doesn't crash and includes
# the string constant we would expect to see.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-include ../tools.mk
include ../../run-make-fulldeps/tools.mk

# This test verifies that rustdoc doesn't ICE when it encounters an IO error
# while generating files. Ideally this would be a rustdoc-ui test, so we could
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
-include ../tools.mk

all:
$(RUSTDOC) -Z unstable-options --generate-redirect-map foo.rs -o "$(TMPDIR)/out"
"$(PYTHON)" validate_json.py "$(TMPDIR)/out"
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
-include ../tools.mk

all:
$(RUSTDOC) -o "$(TMPDIR)/foo/bar/doc" foo.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
-include ../tools.mk

all:
$(RUSTDOC) -Z unstable-options --print unversioned-files | sort | diff - unversioned-files.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-include ../tools.mk
include ../../run-make-fulldeps/tools.mk

# Test that rustdoc will properly load in a theme file and display it in the theme selector.

Expand Down
File renamed without changes.

0 comments on commit ed8ac0c

Please sign in to comment.