Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(49)

Unified Diff: tools/gcov_shim

Issue 23523055: add a way to get code coverage (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: borenet Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/coverage.sh ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/gcov_shim
diff --git a/tools/gcov_shim b/tools/gcov_shim
new file mode 100755
index 0000000000000000000000000000000000000000..1bac3b7f027f73f75e90683b28ce6ec7888277ce
--- /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
« no previous file with comments | « tools/coverage.sh ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698