aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools
diff options
context:
space:
mode:
authorGravatar Lukacs Berki <lberki@google.com>2016-06-29 09:14:10 +0000
committerGravatar Damien Martin-Guillerez <dmarting@google.com>2016-06-29 10:57:53 +0000
commit8f460f399123709d5b07c68184147ab024e1c593 (patch)
tree39bee12ac3024e653c1bd30ffe39cb5d25439750 /tools
parent02f2348c72f07fc4df4fbc83a86725c0e5eb9146 (diff)
Refactor how coverage support files get to test actions.
Previously we used labels in each configuration fragment that then got added to every test action. Instead, we now have a filegroup under //tools/test for coverage files that truly need to be on the inputs of every test action and collect language-specific support files in InstrumentedFilesProvider. This makes configuration creation simpler and makes it possible to turn --crosstool_top into something else other than a filegroup (previously, it was that filegroup that got added to every test action) -- MOS_MIGRATED_REVID=126170241
Diffstat (limited to 'tools')
-rw-r--r--tools/test/BUILD10
-rw-r--r--tools/test/dummy_coverage_report_generator2
2 files changed, 12 insertions, 0 deletions
diff --git a/tools/test/BUILD b/tools/test/BUILD
index 93b2e7a65f..0631350e53 100644
--- a/tools/test/BUILD
+++ b/tools/test/BUILD
@@ -8,6 +8,16 @@ filegroup(
)
filegroup(
+ name = "coverage_support",
+ srcs = [],
+)
+
+filegroup(
+ name = "coverage_report_generator",
+ srcs = ["dummy_coverage_report_generator"],
+)
+
+filegroup(
name = "srcs",
srcs = [
"BUILD",
diff --git a/tools/test/dummy_coverage_report_generator b/tools/test/dummy_coverage_report_generator
new file mode 100644
index 0000000000..27c43ad8c2
--- /dev/null
+++ b/tools/test/dummy_coverage_report_generator
@@ -0,0 +1,2 @@
+# Dummy file. Bazel requires there to be a single file in the coverage report
+# generator attribute, even though it's currently not used in Bazel.