1 .TH lcovrc 5 "LCOV 1.10" 2012\-10\-10 "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 # Specify the character set of all generated HTML pages
149 genhtml_charset=UTF\-8
152 # Location of the gcov tool
154 #geninfo_gcov_tool = gcov
157 # Adjust test names if non\-zero
159 #geninfo_adjust_testname = 0
162 # Calculate a checksum for each line if non\-zero
167 # Enable libtool compatibility mode if non\-zero
169 geninfo_compat_libtool = 0
172 # Specify whether to capture coverage data for external source
176 #geninfo_external = 1
179 # Use gcov's --all-blocks option if non-zero
181 #geninfo_gcov_all_blocks = 1
184 # Specify compatiblity modes (same as \-\-compat option
188 #geninfo_compat = libtool=on, hammer=auto, split_crc=auto
191 # Adjust path to source files by removing or changing path
193 # components that match the specified pattern (Perl regular
197 #geninfo_adjust_src_path = /tmp/build => /usr/src
199 # Specify if geninfo should try to automatically determine
201 # the base-directory when collecting coverage data.
203 geninfo_auto_base = 1
206 # Directory containing gcov kernel files
208 lcov_gcov_dir = /proc/gcov
211 # Location for temporary directories
216 # Show full paths during list operation if non\-zero
218 lcov_list_full_path = 0
221 # Specify the maximum width for list output. This value is
223 # ignored when lcov_list_full_path is non\-zero.
228 # Specify the maximum percentage of file names which may be
230 # truncated when choosing a directory prefix in list output.
232 # This value is ignored when lcov_list_full_path is non\-zero.
234 lcov_list_truncate_max = 20
236 # Specify if function coverage data should be collected and
240 lcov_function_coverage = 1
243 # Specify if branch coverage data should be collected and
247 lcov_branch_coverage = 0
253 .BR genhtml_css_file " ="
256 Specify an external style sheet file. Use this option to modify the appearance of the HTML output as generated by
258 During output generation, a copy of this file will be placed in the output
262 This option corresponds to the \-\-css\-file command line option of
266 By default, a standard CSS file is generated.
269 .BR genhtml_hi_limit " ="
272 .BR genhtml_med_limit " ="
276 Specify coverage rate limits for classifying file entries. Use this option to
277 modify the coverage rates (in percent) for line, function and branch coverage at
278 which a result is classified as high, medium or low coverage. This
279 classification affects the color of the corresponding entries on the overview
280 pages of the HTML output:
283 High: hi_limit <= rate <= 100 default color: green
285 Medium: med_limit <= rate < hi_limit default color: orange
287 Low: 0 <= rate < med_limit default color: red
290 Defaults are 90 and 75 percent.
293 .BR genhtml_line_field_width " ="
294 .I number_of_characters
296 Specify the width (in characters) of the source code view column containing
297 line coverage information.
303 .BR genhtml_branch_field_width " ="
304 .I number_of_characters
306 Specify the width (in characters) of the source code view column containing
307 branch coverage information.
313 .BR genhtml_overview_width " ="
316 Specify the width (in pixel) of the overview image created when generating HTML
317 output using the \-\-frames option of
324 .BR genhtml_nav_resolution " ="
327 Specify the resolution of overview navigation when generating HTML output using
328 the \-\-frames option of
330 This number specifies the maximum difference in lines between the position a
331 user selected from the overview and the position the source code window is
339 .BR genhtml_nav_offset " ="
342 Specify the overview navigation line offset as applied when generating HTML
343 output using the \-\-frames option of
347 Clicking a line in the overview image should show the source code view at
348 a position a bit further up, so that the requested line is not the first
349 line in the window. This number specifies that offset.
356 .BR genhtml_keep_descriptions " ="
359 If non\-zero, keep unused test descriptions when generating HTML output using
363 This option corresponds to the \-\-keep\-descriptions option of
370 .BR genhtml_no_prefix " ="
373 If non\-zero, do not try to find and remove a common prefix from directory names.
376 This option corresponds to the \-\-no\-prefix option of
383 .BR genhtml_no_source " ="
386 If non\-zero, do not create a source code view when generating HTML output using
390 This option corresponds to the \-\-no\-source option of
397 .BR genhtml_num_spaces " ="
400 Specify the number of spaces to use as replacement for tab characters in the
401 HTML source code view as generated by
405 This option corresponds to the \-\-num\-spaces option of
413 .BR genhtml_highlight " ="
416 If non\-zero, highlight lines with converted\-only data in
417 HTML output as generated by
421 This option corresponds to the \-\-highlight option of
428 .BR genhtml_legend " ="
431 If non\-zero, include a legend explaining the meaning of color coding in the HTML
432 output as generated by
436 This option corresponds to the \-\-legend option of
443 .BR genhtml_html_prolog " ="
446 If set, include the contents of the specified file at the beginning of HTML
449 This option corresponds to the \-\-html\-prolog option of
453 Default is to use no extra prolog.
456 .BR genhtml_html_epilog " ="
459 If set, include the contents of the specified file at the end of HTML output.
461 This option corresponds to the \-\-html\-epilog option of
465 Default is to use no extra epilog.
468 .BR genhtml_html_extension " ="
471 If set, use the specified string as filename extension for generated HTML files.
473 This option corresponds to the \-\-html\-extension option of
477 Default extension is "html".
480 .BR genhtml_html_gzip " ="
483 If set, compress all html files using gzip.
485 This option corresponds to the \-\-html\-gzip option of
489 Default extension is 0.
492 .BR genhtml_sort " ="
495 If non\-zero, create overview pages sorted by coverage rates when generating
500 This option can be set to 0 by using the \-\-no\-sort option of
507 .BR genhtml_function_coverage " ="
510 If non\-zero, include function coverage data when generating HTML output using
514 This option can be set to 0 by using the \-\-no\-function\-coverage option of
521 .BR genhtml_branch_coverage " ="
524 If non\-zero, include branch coverage data when generating HTML output using
528 This option can be set to 0 by using the \-\-no\-branch\-coverage option of
535 .BR genhtml_charset " ="
538 Specify the character set of all generated HTML pages.
541 Use this option if the source code contains characters which are not
542 part of the default character set. Note that this option is ignored
543 when a custom HTML prolog is specified (see also
544 .BR genhtml_html_prolog ).
549 .BR geninfo_gcov_tool " ="
552 Specify the location of the gcov tool (see
554 which is used to generate coverage information from data files.
560 .BR geninfo_adjust_testname " ="
563 If non\-zero, adjust test names to include operating system information
564 when capturing coverage data.
570 .BR geninfo_checksum " ="
573 If non\-zero, generate source code checksums when capturing coverage data.
574 Checksums are useful to prevent merging coverage data from incompatible
575 source code versions but checksum generation increases the size of coverage
576 files and the time used to generate those files.
579 This option corresponds to the \-\-checksum and \-\-no\-checksum command line
587 .BR geninfo_compat_libtool " ="
590 If non\-zero, enable libtool compatibility mode. When libtool compatibility
591 mode is enabled, lcov will assume that the source code relating to a .da file
592 located in a directory named ".libs" can be found in its parent directory.
595 This option corresponds to the \-\-compat\-libtool and \-\-no\-compat\-libtool
596 command line option of
603 .BR geninfo_external " ="
606 If non\-zero, capture coverage data for external source files.
608 External source files are files which are not located in one of the directories
609 (including sub-directories)
610 specified by the \-\-directory or \-\-base\-directory options of
616 .BR geninfo_gcov_all_blocks " ="
619 If non\-zero, call the gcov tool with option --all-blocks.
621 Using --all-blocks will produce more detailed branch coverage information for
622 each line. Set this option to zero if you do not need detailed branch coverage
623 information to speed up the process of capturing code coverage or to work
624 around a bug in some versions of gcov which will cause it to endlessly loop
625 when analysing some files.
630 .BR geninfo_compat " ="
631 .IR mode = value [, mode = value ,...]
633 Specify that geninfo should enable one or more compatibility modes
634 when capturing coverage data.
636 This option corresponds to the \-\-compat command line option of
639 Default is 'libtool=on, hammer=auto, split_crc=auto'.
642 .BR geninfo_adjust_src_path " ="
643 .IR pattern " => " replacement
645 .BR geninfo_adjust_src_path " ="
648 Adjust source paths when capturing coverage data.
650 Use this option in situations where geninfo cannot find the correct
651 path to source code files of a project. By providing a
653 in Perl regular expression format (see
655 and an optional replacement string, you can instruct geninfo to
656 remove or change parts of the incorrect source path.
661 1. When geninfo reports that it cannot find source file
664 /path/to/src/.libs/file.c
667 while the file is actually located in
673 use the following parameter:
676 geninfo_adjust_src_path = /.libs
678 This will remove all "/.libs" strings from the path.
680 2. When geninfo reports that it cannot find source file
686 while the file is actually located in
692 use the following parameter:
695 geninfo_adjust_src_path = /tmp/build => /usr/src
698 This will change all "/tmp/build" strings in the path to "/usr/src".
701 .BR geninfo_auto_base " ="
704 If non\-zero, apply a heuristic to determine the base directory when
705 collecting coverage data.
708 Use this option when using geninfo on projects built with libtool or
709 similar build environments that work with multiple base directories,
710 i.e. environments, where the current working directory when invoking the
711 compiler ist not the same directory in which the source code file is
712 located, and in addition, is different between files of the same project.
718 .BR lcov_gcov_dir " ="
719 .I path_to_kernel_coverage_data
721 Specify the path to the directory where kernel coverage data can be found
722 or leave undefined for auto-detection.
725 Default is auto-detection.
728 .BR lcov_tmp_dir " ="
731 Specify the location of a directory used for temporary files.
737 .BR lcov_list_full_path " ="
740 If non-zero, print the full path to source code files during a list operation.
743 This option corresponds to the \-\-list\-full\-path option of
750 .BR lcov_list_max_width " ="
753 Specify the maximum width for list output. This value is ignored when
754 lcov_list_full_path is non\-zero.
760 .BR lcov_list_truncate_max
764 Specify the maximum percentage of file names which may be truncated when
765 choosing a directory prefix in list output. This value is ignored when
766 lcov_list_full_path is non\-zero.
772 .BR lcov_function_coverage " ="
775 Specify whether lcov should handle function coverage data.
778 Setting this option to 0 can reduce memory and CPU time consumption
779 when lcov is collecting and processing coverage data, as well as
780 reduce the size of the resulting data files. Note that setting
781 .B genhtml_function_coverage
782 will override this option for HTML generation.
788 .BR lcov_branch_coverage " ="
791 Specify whether lcov should handle branch coverage data.
794 Setting this option to 0 can reduce memory and CPU time consumption
795 when lcov is collecting and processing coverage data, as well as
796 reduce the size of the resulting data files. Note that setting
797 .B genhtml_branch_coverage
798 will override this option for HTML generation.
814 The individual per\-user configuration file.