Page MenuHome

WIP macOS: Add code coverage with llvm-cov.
Needs ReviewPublic

Authored by Ankit Meel (ankitm) on Jul 8 2021, 4:57 PM.
This revision needs review, but there are no reviewers specified.

Details

Reviewers
None
Summary

WIP and proof of concept

A report is generated in builddir/coverage/profiles similar to
http://lab.llvm.org:8080/coverage/coverage-reports/index.html

Limitations:
Multiple runs cannot be stored yet. How I did it in my hack F9562509 was
putting timestamp of running ctest in the folder name. But it's
difficult to do it with GTests. Looking into it.

Need to find ways to generate compact report like F9507919 instead of
the expanded line by line information.

Takes a long time between finishing the test run and quitting Blender
after finishing writing profraw file. That is despite using
llvm-symbolizer.

Look into why FIXTURES_CLEANUP is not taking effect: cov_processing
should be run despite using -R blah.

Other platforms.

Diff Detail

Repository
rB Blender
Branch
cov (branched from master)
Build Status
Buildable 15714
Build 15714: arc lint + arc unit

Event Timeline

Ankit Meel (ankitm) requested review of this revision.Jul 8 2021, 4:57 PM
Ankit Meel (ankitm) created this revision.
Ankit Meel (ankitm) edited the summary of this revision. (Show Details)Jul 8 2021, 4:57 PM
Ankit Meel (ankitm) edited the summary of this revision. (Show Details)Jul 8 2021, 5:04 PM
Ankit Meel (ankitm) edited the summary of this revision. (Show Details)
  • set_coverage_fixture_setup_cleanup in gtest also
Ankit Meel (ankitm) retitled this revision from macOS: Add code coverage with llvm-cov. to WIP macOS: Add code coverage with llvm-cov..Jul 8 2021, 5:15 PM
Ankit Meel (ankitm) edited the summary of this revision. (Show Details)
  • Finally fix fixture dependency thing
Ankit Meel (ankitm) edited the summary of this revision. (Show Details)Jul 9 2021, 8:55 AM