Skip to content

Commit d05653c

Browse files
committed
Declare a run-coverage-rustdoc suite for coverage tests that need rustdoc
1 parent e0625b4 commit d05653c

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

src/bootstrap/builder.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -695,6 +695,7 @@ impl<'a> Builder<'a> {
695695
test::Debuginfo,
696696
test::UiFullDeps,
697697
test::Rustdoc,
698+
test::RunCoverageRustdoc,
698699
test::Pretty,
699700
test::Crate,
700701
test::CrateLibrustc,

src/bootstrap/test.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1320,6 +1320,11 @@ host_test!(RunMakeFullDeps {
13201320
default_test!(Assembly { path: "tests/assembly", mode: "assembly", suite: "assembly" });
13211321

13221322
host_test!(RunCoverage { path: "tests/run-coverage", mode: "run-coverage", suite: "run-coverage" });
1323+
host_test!(RunCoverageRustdoc {
1324+
path: "tests/run-coverage-rustdoc",
1325+
mode: "run-coverage",
1326+
suite: "run-coverage-rustdoc"
1327+
});
13231328

13241329
// For the mir-opt suite we do not use macros, as we need custom behavior when blessing.
13251330
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
@@ -1505,6 +1510,7 @@ note: if you're sure you want to do this, please open an issue as to why. In the
15051510
|| (mode == "ui" && is_rustdoc)
15061511
|| mode == "js-doc-test"
15071512
|| mode == "rustdoc-json"
1513+
|| suite == "run-coverage-rustdoc"
15081514
{
15091515
cmd.arg("--rustdoc-path").arg(builder.rustdoc(compiler));
15101516
}

0 commit comments

Comments
 (0)