diff options
author | 2015-07-29 14:49:01 +0000 | |
---|---|---|
committer | 2015-07-29 16:03:41 +0000 | |
commit | 40deeff2fb1a0686be6276c1559ce051fe079a04 (patch) | |
tree | db1ce933aeeecafb401be94741427552659254a7 /src/main/java/com/google/devtools/build/lib/rules/cpp/CppConfiguration.java | |
parent | a0345bce94607a7096777d9013eed4c08cf12edc (diff) |
Support coverage in experimental_ios_test.
Coverage depends on quite a few moving parts, several of which were changed for this test:
- BuildConfiguration.getCoverageLabels() used to include gcov support, this is now replaced by the dedicated getGcovLabels() and a separate implicit attribute on TestBaseRule. This new attribute is then overridden in ExperimentalIosTest to use an xcode-compatible gcov.
- Objc's TestSupport now correctly registers instrumented files and sets the necessary runfiles for collecting coverage.
- ios_test's template exports gcda files for coverage computation after the test's execution.
--
MOS_MIGRATED_REVID=99374435
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/rules/cpp/CppConfiguration.java')
-rw-r--r-- | src/main/java/com/google/devtools/build/lib/rules/cpp/CppConfiguration.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/rules/cpp/CppConfiguration.java b/src/main/java/com/google/devtools/build/lib/rules/cpp/CppConfiguration.java index 06c9e6b9cc..a32c11697b 100644 --- a/src/main/java/com/google/devtools/build/lib/rules/cpp/CppConfiguration.java +++ b/src/main/java/com/google/devtools/build/lib/rules/cpp/CppConfiguration.java @@ -1806,7 +1806,7 @@ public class CppConfiguration extends BuildConfiguration.Fragment { } @Override - public ImmutableList<Label> getCoverageLabels() { + public ImmutableList<Label> getGcovLabels() { // TODO(bazel-team): Using a gcov-specific crosstool filegroup here could reduce the number of // inputs significantly. We'd also need to add logic in tools/coverage/collect_coverage.sh to // drop crosstool dependency if metadataFiles does not contain *.gcno artifacts. |