Skip to content

Commit 8f4d783

Browse files
committed
Support MC/DC metrics. See '--mcdc-coverage' section of various man pages.
Note that this version has been tested with gcc/14.2.0 (only). Signed-off-by: Henry Cox <[email protected]>
1 parent f1589ab commit 8f4d783

25 files changed

+2709
-592
lines changed

Diff for: README

+10-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
-------------------------------------------------
22
- README file for the LTP GCOV extension (LCOV) -
3-
- Last changes: 2024-10-03
3+
- Last changes: 2024-11-12
44
-------------------------------------------------
55

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

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

213+
If you want to collect Modified Condition / Decision Coverage (MD/DC)
214+
date, then:
215+
- you must use gcc/14.2 or newer
216+
- your compile- and link command line must include flag
217+
'-fcondition-coverage'
218+
- your lcov and genhtml command line must include flag
219+
'--mcdc-coverage'
220+
See the '--mcdc-coverage' section in the lcov and geninfo man pages.
221+
213222
Note that runtime coverage data exists only after the application has
214223
been started and stopped at least once. Otherwise, no data will be found
215224
and lcov will abort with an error mentioning that there are no

0 commit comments

Comments
 (0)