diff options
author | lberki <lberki@google.com> | 2017-04-18 16:37:35 +0200 |
---|---|---|
committer | Klaus Aehlig <aehlig@google.com> | 2017-04-18 16:42:00 +0200 |
commit | 3a5d3db6436bbaf5351da9ea9c19a41ae7c95ca9 (patch) | |
tree | a8f1b3ff4fd70d51642b512c0ee241f0ffc3837c /src/test | |
parent | b6cc4c1d35cfc8427ab3ed94b9e8c1f38cd910e0 (diff) |
Re-enable the Java coverage tests.
It has been disabled in https://github.com/bazelbuild/bazel/commit/bce889840f91f14c05418d960984bcf1a5f59411 and in https://github.com/bazelbuild/bazel/commit/21fb8cac60c36cb527d6131ab0092bcdf138d99a and then was not re-enabled.
Also update src/java_tools/junitrunner/java/com/google/testing/coverage/BUILD to which I accidentally submitted a change directly to our OSS repository.
RELNOTES: None.
PiperOrigin-RevId: 153460778
Diffstat (limited to 'src/test')
-rwxr-xr-x | src/test/shell/bazel/bazel_coverage_test.sh | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/src/test/shell/bazel/bazel_coverage_test.sh b/src/test/shell/bazel/bazel_coverage_test.sh index 4b271ca647..c8cbb038fc 100755 --- a/src/test/shell/bazel/bazel_coverage_test.sh +++ b/src/test/shell/bazel/bazel_coverage_test.sh @@ -79,8 +79,18 @@ EOF bazel coverage //:test &>$TEST_log || fail "Coverage for //:test failed" + echo ================ TL ====================== + cat $TEST_log + echo ================ TL END ================== + ending_part=$(sed -n -e '/PASSED/,$p' $TEST_log) + + echo ====== EP ====== + echo "$ending_part" + echo ====== END EP ====== + coverage_file_path=$(grep -Eo "/[/a-zA-Z0-9\.\_\-]+\.dat$" <<< "$ending_part") + echo ========= CFP "$coverage_file_path" [ -e $coverage_file_path ] || fail "Coverage output file not exists!" cat <<EOF > result.dat @@ -107,5 +117,4 @@ EOF fi } -# TODO(#2227): Re-enable when the jacoco processor issue is fixed. -#run_suite "test tests" +run_suite "test tests" |