* commit '366992e541482af7c875409e56114a6b785ef5fa': Default to using clang compatible gcov for host.
This commit is contained in:
@@ -50,9 +50,11 @@ fi
|
|||||||
|
|
||||||
HOST=false
|
HOST=false
|
||||||
ANDROID_OUT=$ANDROID_PRODUCT_OUT
|
ANDROID_OUT=$ANDROID_PRODUCT_OUT
|
||||||
|
EXTRA_ARGS="$@"
|
||||||
if [ "$1" = "--host" ]; then
|
if [ "$1" = "--host" ]; then
|
||||||
HOST=true
|
HOST=true
|
||||||
ANDROID_OUT=$ANDROID_HOST_OUT
|
ANDROID_OUT=$ANDROID_HOST_OUT
|
||||||
|
EXTRA_ARGS="--gcov-tool=/usr/bin/gcov-4.6 ${@:2}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cd $ANDROID_BUILD_TOP
|
cd $ANDROID_BUILD_TOP
|
||||||
@@ -63,7 +65,7 @@ if [ "$HOST" = "false" ]; then
|
|||||||
adb pull /data/local/tmp/gcov
|
adb pull /data/local/tmp/gcov
|
||||||
fi
|
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"
|
echo "Generating coverage report at $DIR"
|
||||||
genhtml -q -o $DIR $DIR/$FILE
|
genhtml -q -o $DIR $DIR/$FILE
|
||||||
xdg-open $DIR/index.html >/dev/null
|
xdg-open $DIR/index.html >/dev/null
|
||||||
|
|||||||
Reference in New Issue
Block a user