Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cmake: introduce a target coverage-reset
The path introduce a CMake target `coverage-reset` that resets code coverage counters: ``` $ make coverage-report Building coverage report (INFO) - MainThread - Reading coverage data... (INFO) - MainThread - Writing coverage report... lines: 53.2% (5949 out of 11177) functions: 60.0% (631 out of 1051) branches: 36.2% (3300 out of 9106) decisions: 47.6% (1486 out of 3119) Built target coverage-report $ make coverage-reset [100%] Reset code coverage counters [100%] Built target coverage-reset $ make coverage-report Building coverage report (INFO) - MainThread - Reading coverage data... (INFO) - MainThread - Writing coverage report... lines: 0.0% (0 out of 11177) functions: 0.0% (0 out of 1051) branches: 0.0% (0 out of 9106) decisions: 0.0% (0 out of 3119) Built target coverage-report $ ``` Note, files 'src/host/*.gcda' generated in LuaJIT directory are not removed, because CMake cannot remove recursively by globbing. Files 'src/host/*.gcda' are not used for building coverage report, so it is ok.
- Loading branch information