Commit 63d7ff9e authored by Max Moroz's avatar Max Moroz

Add script for local generation and visualization of code coverage.

It's a temporary solution while pending integration on LLVM side.

An example of usage:
  ./coverage.py --command "out/coverage/zlib_uncompress_fuzzer \
    -runs=0 $HOME/corpus/zlib_uncompress_fuzzer" --source "$PWD" \
    --output "cov"
  <...>
  Done. The next steps would be:
  1. cd cov && python -m SimpleHTTPServer
  2. open http://127.0.0.1:8000/report.html


Examples of reports:
- small test target: http://go/cov-sample-1
- v8_script_parser_fuzzer: http://go/cov-sample-2


Bug: 759794
Change-Id: I57b8ffc7ff70d2415dc0d3796508e85f7c1f048b
Reviewed-on: https://chromium-review.googlesource.com/677138Reviewed-by: default avatarMax Moroz <mmoroz@chromium.org>
Reviewed-by: default avatarOliver Chang <ochang@chromium.org>
Cr-Commit-Position: refs/heads/master@{#505795}
parent 20dd2d8e
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment