diff options
author | mtklein@google.com <mtklein@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-09-13 19:32:43 +0000 |
---|---|---|
committer | mtklein@google.com <mtklein@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-09-13 19:32:43 +0000 |
commit | 1fb04e25405d5ec75aea4a099819d6feca348ff6 (patch) | |
tree | 7b7b97caa0cfeafbc604ecc712f29ab34f4c5e1a /tools/gcov_shim | |
parent | cee9dcb8377e1f85a7a232822a894464ea6ccddc (diff) |
add a way to get code coverage
BUG=
R=borenet@google.com
Review URL: https://codereview.chromium.org/23523055
git-svn-id: http://skia.googlecode.com/svn/trunk@11261 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'tools/gcov_shim')
-rwxr-xr-x | tools/gcov_shim | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tools/gcov_shim b/tools/gcov_shim new file mode 100755 index 0000000000..1bac3b7f02 --- /dev/null +++ b/tools/gcov_shim @@ -0,0 +1,15 @@ +#!/bin/bash + +# Running gcov with -a (--all-blocks) will hang on some files. lcov uses -a. +# This shim strips out that flag (a minor feature) so we can run gcov. + +CMD="gcov" + +while (( "$#" )); do + if [[ "$1" != "-a" && "$1" != "-all-blocks" && "$1" != "--all-blocks" ]]; then + CMD="$CMD $1" + fi + shift +done + +$CMD |