From f12f6582248ab23fcafc647f77f271a5a442019f Mon Sep 17 00:00:00 2001 From: Dan Albert Date: Thu, 29 Jan 2015 16:51:39 -0800 Subject: [PATCH] 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 --- scripts/acov | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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