1 .TH lcovrc 5 "LCOV 1.9" 2010\-08\-06 "User Manuals"
4 lcovrc \- lcov configuration file
9 file contains configuration information for the
11 code coverage tool (see
15 The system\-wide configuration file is located at
17 To change settings for a single user, place a customized copy of this file at
20 Where available, command\-line options override configuration file settings.
22 Lines in a configuration file can either be:
24 empty lines or lines consisting only of white space characters. These lines are
27 comment lines which start with a hash sign ('#'). These are treated like empty
28 lines and will be ignored.
30 statements in the form
31 .RI ' key " = " value '.
32 A list of valid statements and their description can be found in
33 section 'OPTIONS' below.
36 .B Example configuration:
40 # Example LCOV configuration file
45 # External style sheet file
47 #genhtml_css_file = gcov.css
50 # Coverage rate limits
54 genhtml_med_limit = 75
57 # Width of line coverage field in source code view
59 genhtml_line_field_width = 12
62 # Width of branch coverage field in source code view
64 genhtml_branch_field_width = 16
67 # Width of overview image
69 genhtml_overview_width = 80
72 # Resolution of overview navigation
74 genhtml_nav_resolution = 4
77 # Offset for source code navigation
79 genhtml_nav_offset = 10
82 # Do not remove unused test descriptions if non\-zero
84 genhtml_keep_descriptions = 0
87 # Do not remove prefix from directory names if non\-zero
92 # Do not create source code view if non\-zero
97 # Specify size of tabs
99 genhtml_num_spaces = 8
102 # Highlight lines with converted\-only data if non\-zero
104 genhtml_highlight = 0
107 # Include color legend in HTML output if non\-zero
112 # Include HTML file at start of HTML output
114 #genhtml_html_prolog = prolog.html
117 # Include HTML file at end of HTML output
119 #genhtml_html_epilog = epilog.html
122 # Use custom HTML file extension
124 #genhtml_html_extension = html
127 # Compress all generated html files with gzip.
129 #genhtml_html_gzip = 1
132 # Include sorted overview pages
137 # Include function coverage data display
139 genhtml_function_coverage = 1
142 # Include branch coverage data display
144 genhtml_branch_coverage = 1
147 # Location of the gcov tool
149 #geninfo_gcov_tool = gcov
152 # Adjust test names if non\-zero
154 #geninfo_adjust_testname = 0
157 # Calculate a checksum for each line if non\-zero
162 # Enable libtool compatibility mode if non\-zero
164 geninfo_compat_libtool = 0
167 # Directory containing gcov kernel files
169 lcov_gcov_dir = /proc/gcov
172 # Location for temporary directories
177 # Show full paths during list operation if non\-zero
179 lcov_list_full_path = 0
182 # Specify the maximum width for list output. This value is
184 # ignored when lcov_list_full_path is non\-zero.
189 # Specify the maximum percentage of file names which may be
191 # truncated when choosing a directory prefix in list output.
193 # This value is ignored when lcov_list_full_path is non\-zero.
196 lcov_list_truncate_max = 20
201 .BR genhtml_css_file " ="
204 Specify an external style sheet file. Use this option to modify the appearance of the HTML output as generated by
206 During output generation, a copy of this file will be placed in the output
210 This option corresponds to the \-\-css\-file command line option of
214 By default, a standard CSS file is generated.
217 .BR genhtml_hi_limit " ="
220 .BR genhtml_med_limit " ="
224 Specify coverage rate limits for classifying file entries. Use this option to
225 modify the coverage rates (in percent) for line, function and branch coverage at
226 which a result is classified as high, medium or low coverage. This
227 classification affects the color of the corresponding entries on the overview
228 pages of the HTML output:
231 High: hi_limit <= rate <= 100 default color: green
233 Medium: med_limit <= rate < hi_limit default color: orange
235 Low: 0 <= rate < med_limit default color: red
238 Defaults are 90 and 75 percent.
241 .BR genhtml_line_field_width " ="
242 .I number_of_characters
244 Specify the width (in characters) of the source code view column containing
245 line coverage information.
251 .BR genhtml_branch_field_width " ="
252 .I number_of_characters
254 Specify the width (in characters) of the source code view column containing
255 branch coverage information.
261 .BR genhtml_overview_width " ="
264 Specify the width (in pixel) of the overview image created when generating HTML
265 output using the \-\-frames option of
272 .BR genhtml_nav_resolution " ="
275 Specify the resolution of overview navigation when generating HTML output using
276 the \-\-frames option of
278 This number specifies the maximum difference in lines between the position a
279 user selected from the overview and the position the source code window is
287 .BR genhtml_nav_offset " ="
290 Specify the overview navigation line offset as applied when generating HTML
291 output using the \-\-frames option of
295 Clicking a line in the overview image should show the source code view at
296 a position a bit further up, so that the requested line is not the first
297 line in the window. This number specifies that offset.
304 .BR genhtml_keep_descriptions " ="
307 If non\-zero, keep unused test descriptions when generating HTML output using
311 This option corresponds to the \-\-keep\-descriptions option of
318 .BR genhtml_no_prefix " ="
321 If non\-zero, do not try to find and remove a common prefix from directory names.
324 This option corresponds to the \-\-no\-prefix option of
331 .BR genhtml_no_source " ="
334 If non\-zero, do not create a source code view when generating HTML output using
338 This option corresponds to the \-\-no\-source option of
345 .BR genhtml_num_spaces " ="
348 Specify the number of spaces to use as replacement for tab characters in the
349 HTML source code view as generated by
353 This option corresponds to the \-\-num\-spaces option of
361 .BR genhtml_highlight " ="
364 If non\-zero, highlight lines with converted\-only data in
365 HTML output as generated by
369 This option corresponds to the \-\-highlight option of
376 .BR genhtml_legend " ="
379 If non\-zero, include a legend explaining the meaning of color coding in the HTML
380 output as generated by
384 This option corresponds to the \-\-legend option of
391 .BR genhtml_html_prolog " ="
394 If set, include the contents of the specified file at the beginning of HTML
397 This option corresponds to the \-\-html\-prolog option of
401 Default is to use no extra prolog.
404 .BR genhtml_html_epilog " ="
407 If set, include the contents of the specified file at the end of HTML output.
409 This option corresponds to the \-\-html\-epilog option of
413 Default is to use no extra epilog.
416 .BR genhtml_html_extension " ="
419 If set, use the specified string as filename extension for generated HTML files.
421 This option corresponds to the \-\-html\-extension option of
425 Default extension is "html".
428 .BR genhtml_html_gzip " ="
431 If set, compress all html files using gzip.
433 This option corresponds to the \-\-html\-gzip option of
437 Default extension is 0.
440 .BR genhtml_sort " ="
443 If non\-zero, create overview pages sorted by coverage rates when generating
448 This option can be set to 0 by using the \-\-no\-sort option of
455 .BR genhtml_function_coverage " ="
458 If non\-zero, include function coverage data when generating HTML output using
462 This option can be set to 0 by using the \-\-no\-function\-coverage option of
469 .BR genhtml_branch_coverage " ="
472 If non\-zero, include branch coverage data when generating HTML output using
476 This option can be set to 0 by using the \-\-no\-branch\-coverage option of
483 .BR geninfo_gcov_tool " ="
486 Specify the location of the gcov tool (see
488 which is used to generate coverage information from data files.
494 .BR geninfo_adjust_testname " ="
497 If non\-zero, adjust test names to include operating system information
498 when capturing coverage data.
504 .BR geninfo_checksum " ="
507 If non\-zero, generate source code checksums when capturing coverage data.
508 Checksums are useful to prevent merging coverage data from incompatible
509 source code versions but checksum generation increases the size of coverage
510 files and the time used to generate those files.
513 This option corresponds to the \-\-checksum and \-\-no\-checksum command line
521 .BR geninfo_compat_libtool " ="
524 If non\-zero, enable libtool compatibility mode. When libtool compatibility
525 mode is enabled, lcov will assume that the source code relating to a .da file
526 located in a directory named ".libs" can be found in its parent directory.
529 This option corresponds to the \-\-compat\-libtool and \-\-no\-compat\-libtool
530 command line option of
537 .BR lcov_gcov_dir " ="
538 .I path_to_kernel_coverage_data
540 Specify the path to the directory where kernel coverage data can be found
541 or leave undefined for auto-detection.
544 Default is auto-detection.
547 .BR lcov_tmp_dir " ="
550 Specify the location of a directory used for temporary files.
556 .BR lcov_list_full_path " ="
559 If non-zero, print the full path to source code files during a list operation.
562 This option corresponds to the \-\-list\-full\-path option of
569 .BR lcov_list_max_width " ="
572 Specify the maximum width for list output. This value is ignored when
573 lcov_list_full_path is non\-zero.
579 .BR lcov_list_truncate_max
583 Specify the maximum percentage of file names which may be truncated when
584 choosing a directory prefix in list output. This value is ignored when
585 lcov_list_full_path is non\-zero.
601 The individual per\-user configuration file.