Skip to content

Commit

Permalink
Rollup merge of rust-lang#83775 - jyn514:run-make, r=petrochenkov
Browse files Browse the repository at this point in the history
Move rustdoc run-make-fulldeps tests to run-make

This cuts the time to run the tests in half, because they don't require
building a stage 2 compiler. They were all added to fulldeps before rust-lang#82802 because rustdoc wasn't available in run-make tests.

This doesn't change coverage tests, which will be changed soon in a
separate PR (rust-lang#83755 (comment)).

This also changes some of the `-include` directives, see rust-lang#83773 for what's going on there.

r? `@petrochenkov`
  • Loading branch information
Dylan-DPC authored Apr 2, 2021
2 parents 4410fdf + b46f615 commit cfe69ad
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 cfe69ad

Please sign in to comment.