Index: src/platform/update_engine/gen_coverage_html.sh |
diff --git a/src/platform/update_engine/gen_coverage_html.sh b/src/platform/update_engine/gen_coverage_html.sh |
index 7ccc5d86175dfd67380f561e5b2f9b6a234c77b6..1d3d586099f21fbc0a9fd887da2621e0924b6a86 100755 |
--- a/src/platform/update_engine/gen_coverage_html.sh |
+++ b/src/platform/update_engine/gen_coverage_html.sh |
@@ -6,10 +6,11 @@ |
set -ex |
-scons debug=1 -c |
-scons debug=1 |
+scons debug=1 -j 2 |
lcov -d . --zerocounters |
-./update_engine_unittests |
+./update_engine_unittests --gtest_filter='-*.RunAsRoot*:*.Fakeroot*' |
+fakeroot ./update_engine_unittests --gtest_filter='*.Fakeroot*' |
+sudo ./update_engine_unittests --gtest_filter='*.RunAsRoot*' |
lcov --directory . --capture --output-file app.info |
# some versions of genhtml support the --no-function-coverage argument, |
@@ -19,3 +20,4 @@ lcov --directory . --capture --output-file app.info |
# is tested, but it shows only 50% function coverage b/c it thinks we didn't |
# test the prod version. |
genhtml --no-function-coverage -o html ./app.info || genhtml -o html ./app.info |
+./local_coverage_rate.sh |