summaryrefslogtreecommitdiffstats
path: root/scripts/acov
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/acov')
-rwxr-xr-xscripts/acov12
1 files changed, 12 insertions, 0 deletions
diff --git a/scripts/acov b/scripts/acov
index ef7c86a95..8c6b1d6e4 100755
--- a/scripts/acov
+++ b/scripts/acov
@@ -30,6 +30,18 @@
# it in your browser).
#
+if [ "$1" = "--clean" ]; then
+ find $ANDROID_HOST_OUT \( -name '*.gcda' -o -name '*.gcno' \) -delete
+ find $ANDROID_PRODUCT_OUT \( -name '*.gcda' -o -name '*.gcno' \) -delete
+ exit 0
+fi
+
+if [ "$1" = "--prep" ]; then
+ find $ANDROID_HOST_OUT -name '*.gcda' -delete
+ find $ANDROID_PRODUCT_OUT -name '*.gcda' -delete
+ exit 0
+fi
+
which lcov >/dev/null 2>/dev/null
if [ $? -ne 0 ]; then
echo 'lcov not found: running `sudo apt-get install lcov`'