Commit graph

3 commits

Author SHA1 Message Date
Elliott Hughes
f762275e6a Show coverage for libm too.
Test: manual
Change-Id: Idf50d918ad53ff2d5a3097dfcbd5a392d6f0ed31
2020-08-12 10:25:45 -07:00
Elliott Hughes
7f354436f2 Improve the coverage script.
This now works for ARM as well as Intel.

Also combine both the 32-bit and 64-bit results (since we have code
that's only executed in one variant or the other, the union of the two
seems like what we actually want to measure).

Also make the script executable.

Test: ./bionic/build/coverage.sh
Change-Id: I4e3a7f4cd60fda060b956a960cfb9b703d3670e7
2020-08-11 10:00:30 -07:00
Pirama Arumuga Nainar
abf40321a1 Add a script to generate coverage.
1. Prereqs: Coverage-enabled build.
  $ lunch <target>
  $ m NATIVE_COVERAGE_PATHS="bionic" CLANG_COVERAGE=true
  $ m NATIVE_COVERAGE_PATHS="bionic" CLANG_COVERAGE=true bionic-unit-tests
2. Flash image and set $ANDROID_SERIAL
3. $ bionic/build/coverage.sh

HTML report is generated to /tmp/bionic-coverage

Test: build/coverage.sh
Change-Id: I33c7d47d218a68a250076f063cfbdbaab91acc74
2020-08-05 15:53:19 -07:00