Skip to content

Commit

Permalink
Auto merge of #99715 - tmiasko:coverage-run-make, r=Mark-Simulacrum
Browse files Browse the repository at this point in the history
Move coverage tests from run-make-fulldeps to run-make
  • Loading branch information
bors committed Jul 29, 2022
2 parents 2f847b8 + 01f4534 commit 9fa62f2
Show file tree
Hide file tree
Showing 102 changed files with 17 additions and 13 deletions.
8 changes: 6 additions & 2 deletions src/bootstrap/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1384,9 +1384,13 @@ note: if you're sure you want to do this, please open an issue as to why. In the
.arg(builder.ensure(tool::JsonDocCk { compiler: json_compiler, target }));
}

if mode == "run-make" && suite.ends_with("fulldeps") {
if mode == "run-make" {
let rust_demangler = builder
.ensure(tool::RustDemangler { compiler, target, extra_features: Vec::new() })
.ensure(tool::RustDemangler {
compiler,
target: compiler.host,
extra_features: Vec::new(),
})
.expect("in-tree tool");
cmd.arg("--rust-demangler-path").arg(rust_demangler);
}
Expand Down
3 changes: 0 additions & 3 deletions src/test/run-make-fulldeps/coverage/compiletest-ignore-dir

This file was deleted.

6 changes: 0 additions & 6 deletions src/test/run-make-fulldeps/coverage/coverage_tools.mk

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# version during testing, with an additional directive at the top of this file
# that sets, for example: `min-llvm-version: 12.0`

-include ../coverage/coverage_tools.mk
include ../coverage/coverage_tools.mk

BASEDIR=../coverage-llvmir

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
# FIXME(mati865): MinGW GCC miscompiles compiler-rt profiling library but with Clang it works
# properly. Since we only have GCC on the CI ignore the test for now.

-include ../coverage/coverage_tools.mk
include ../coverage/coverage_tools.mk

BASEDIR=../coverage-reports
SOURCEDIR=../coverage
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 3 additions & 0 deletions src/test/run-make/coverage/compiletest-ignore-dir
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Directory "coverage" supports the tests at prefix ../coverage-*

# Use ./x.py [options] test src/test/run-make/coverage to run all related tests.
File renamed without changes.
File renamed without changes.
6 changes: 6 additions & 0 deletions src/test/run-make/coverage/coverage_tools.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Common Makefile include for Rust `run-make/coverage-* tests. Include this
# file with the line:
#
# include ../coverage/coverage_tools.mk

include ../../run-make-fulldeps/tools.mk
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 9fa62f2

Please sign in to comment.