Skip to content

Commit

Permalink
Support MC/DC metrics. See '--mcdc-coverage' section of various man p…
Browse files Browse the repository at this point in the history
…ages.

Note that this version has been tested with gcc/14.2.0 (only).

Signed-off-by: Henry Cox <[email protected]>
  • Loading branch information
henry2cox committed Nov 18, 2024
1 parent f1589ab commit 8f4d783
Show file tree
Hide file tree
Showing 25 changed files with 2,709 additions and 592 deletions.
11 changes: 10 additions & 1 deletion README
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
-------------------------------------------------
- README file for the LTP GCOV extension (LCOV) -
- Last changes: 2024-10-03
- Last changes: 2024-11-12
-------------------------------------------------

Description
Expand Down Expand Up @@ -210,6 +210,15 @@ Point the web browser of your choice to the resulting index.html file.

$ lcov --directory path/to/my/testcase --capture --output-file app.info

If you want to collect Modified Condition / Decision Coverage (MD/DC)
date, then:
- you must use gcc/14.2 or newer
- your compile- and link command line must include flag
'-fcondition-coverage'
- your lcov and genhtml command line must include flag
'--mcdc-coverage'
See the '--mcdc-coverage' section in the lcov and geninfo man pages.

Note that runtime coverage data exists only after the application has
been started and stopped at least once. Otherwise, no data will be found
and lcov will abort with an error mentioning that there are no
Expand Down
Loading

0 comments on commit 8f4d783

Please sign in to comment.