summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorDan Albert <danalbert@google.com>2015-01-29 16:51:39 -0800
committerDan Albert <danalbert@google.com>2015-01-29 17:00:16 -0800
commitf12f6582248ab23fcafc647f77f271a5a442019f (patch)
tree7e0b965954e467002b19aeee707952698f82fdc3 /scripts
parent214797acbe66390a012d2ba47200f6e8330d5c33 (diff)
downloadandroid_development-f12f6582248ab23fcafc647f77f271a5a442019f.tar.gz
android_development-f12f6582248ab23fcafc647f77f271a5a442019f.tar.bz2
android_development-f12f6582248ab23fcafc647f77f271a5a442019f.zip
Default to using clang compatible gcov for host.
Also adds the ability to pass arbitrary arguments to lcov, in case the user needs to override this behavior. Change-Id: I66b842f92f546fee17a7f1033ef590a3380c14c4
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/acov4
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/acov b/scripts/acov
index 9b2fbbff7..bf2cad4df 100755
--- a/scripts/acov
+++ b/scripts/acov
@@ -50,9 +50,11 @@ fi
HOST=false
ANDROID_OUT=$ANDROID_PRODUCT_OUT
+EXTRA_ARGS="$@"
if [ "$1" = "--host" ]; then
HOST=true
ANDROID_OUT=$ANDROID_HOST_OUT
+ EXTRA_ARGS="--gcov-tool=/usr/bin/gcov-4.6 ${@:2}"
fi
cd $ANDROID_BUILD_TOP
@@ -63,7 +65,7 @@ if [ "$HOST" = "false" ]; then
adb pull /data/local/tmp/gcov
fi
-lcov -c -d $ANDROID_OUT -o $DIR/$FILE
+lcov -c -d $ANDROID_OUT -o $DIR/$FILE $EXTRA_ARGS
echo "Generating coverage report at $DIR"
genhtml -q -o $DIR $DIR/$FILE
xdg-open $DIR/index.html >/dev/null