OLD | NEW |
1 .TH lcovrc 5 "LCOV 1.7" 2008\-11\-17 "User Manuals" | 1 .TH lcovrc 5 "LCOV 1.10" 2012\-10\-10 "User Manuals" |
2 | 2 |
3 .SH NAME | 3 .SH NAME |
4 lcovrc \- lcov configuration file | 4 lcovrc \- lcov configuration file |
5 | 5 |
6 .SH DESCRIPTION | 6 .SH DESCRIPTION |
7 The | 7 The |
8 .I lcovrc | 8 .I lcovrc |
9 file contains configuration information for the | 9 file contains configuration information for the |
10 .B lcov | 10 .B lcov |
11 code coverage tool (see | 11 code coverage tool (see |
(...skipping 28 matching lines...) Expand all Loading... |
40 # Example LCOV configuration file | 40 # Example LCOV configuration file |
41 .br | 41 .br |
42 # | 42 # |
43 .br | 43 .br |
44 | 44 |
45 # External style sheet file | 45 # External style sheet file |
46 .br | 46 .br |
47 #genhtml_css_file = gcov.css | 47 #genhtml_css_file = gcov.css |
48 .br | 48 .br |
49 | 49 |
50 # Coverage rate limits for line coverage | 50 # Coverage rate limits |
51 .br | 51 .br |
52 genhtml_hi_limit = 50 | 52 genhtml_hi_limit = 90 |
53 .br | 53 .br |
54 genhtml_med_limit = 15 | 54 genhtml_med_limit = 75 |
55 .br | 55 .br |
56 | 56 |
57 # Coverage rate limits for function coverage | 57 # Width of line coverage field in source code view |
58 .br | 58 .br |
59 genhtml_function_hi_limit = 90 | 59 genhtml_line_field_width = 12 |
60 .br | 60 .br |
61 genhtml_function_med_limit = 75 | 61 |
| 62 # Width of branch coverage field in source code view |
| 63 .br |
| 64 genhtml_branch_field_width = 16 |
62 .br | 65 .br |
63 | 66 |
64 # Width of overview image | 67 # Width of overview image |
65 .br | 68 .br |
66 genhtml_overview_width = 80 | 69 genhtml_overview_width = 80 |
67 .br | 70 .br |
68 | 71 |
69 # Resolution of overview navigation | 72 # Resolution of overview navigation |
70 .br | 73 .br |
71 genhtml_nav_resolution = 4 | 74 genhtml_nav_resolution = 4 |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 #genhtml_html_gzip = 1 | 129 #genhtml_html_gzip = 1 |
127 .br | 130 .br |
128 | 131 |
129 # Include sorted overview pages | 132 # Include sorted overview pages |
130 .br | 133 .br |
131 genhtml_sort = 1 | 134 genhtml_sort = 1 |
132 .br | 135 .br |
133 | 136 |
134 # Include function coverage data display | 137 # Include function coverage data display |
135 .br | 138 .br |
136 genhtml_function_coverage = 1 | 139 #genhtml_function_coverage = 1 |
| 140 .br |
| 141 |
| 142 # Include branch coverage data display |
| 143 .br |
| 144 #genhtml_branch_coverage = 1 |
| 145 .br |
| 146 |
| 147 # Specify the character set of all generated HTML pages |
| 148 .br |
| 149 genhtml_charset=UTF\-8 |
137 .br | 150 .br |
138 | 151 |
139 # Location of the gcov tool | 152 # Location of the gcov tool |
140 .br | 153 .br |
141 #geninfo_gcov_tool = gcov | 154 #geninfo_gcov_tool = gcov |
142 .br | 155 .br |
143 | 156 |
144 # Adjust test names if non\-zero | 157 # Adjust test names if non\-zero |
145 .br | 158 .br |
146 #geninfo_adjust_testname = 0 | 159 #geninfo_adjust_testname = 0 |
147 .br | 160 .br |
148 | 161 |
149 # Calculate a checksum for each line if non\-zero | 162 # Calculate a checksum for each line if non\-zero |
150 .br | 163 .br |
151 geninfo_checksum = 0 | 164 geninfo_checksum = 0 |
152 .br | 165 .br |
153 | 166 |
154 # Enable libtool compatibility mode if non\-zero | 167 # Enable libtool compatibility mode if non\-zero |
155 .br | 168 .br |
156 geninfo_compat_libtool = 0 | 169 geninfo_compat_libtool = 0 |
157 .br | 170 .br |
158 | 171 |
| 172 # Specify whether to capture coverage data for external source |
| 173 .br |
| 174 # files |
| 175 .br |
| 176 #geninfo_external = 1 |
| 177 .br |
| 178 |
| 179 # Use gcov's --all-blocks option if non-zero |
| 180 .br |
| 181 #geninfo_gcov_all_blocks = 1 |
| 182 .br |
| 183 |
| 184 # Specify compatiblity modes (same as \-\-compat option |
| 185 .br |
| 186 # of geninfo) |
| 187 .br |
| 188 #geninfo_compat = libtool=on, hammer=auto, split_crc=auto |
| 189 .br |
| 190 |
| 191 # Adjust path to source files by removing or changing path |
| 192 .br |
| 193 # components that match the specified pattern (Perl regular |
| 194 .br |
| 195 # expression format) |
| 196 .br |
| 197 #geninfo_adjust_src_path = /tmp/build => /usr/src |
| 198 |
| 199 # Specify if geninfo should try to automatically determine |
| 200 .br |
| 201 # the base-directory when collecting coverage data. |
| 202 .br |
| 203 geninfo_auto_base = 1 |
| 204 .br |
| 205 |
159 # Directory containing gcov kernel files | 206 # Directory containing gcov kernel files |
160 .br | 207 .br |
161 lcov_gcov_dir = /proc/gcov | 208 lcov_gcov_dir = /proc/gcov |
162 .br | 209 .br |
163 | 210 |
164 # Location of the insmod tool | |
165 .br | |
166 lcov_insmod_tool = /sbin/insmod | |
167 .br | |
168 | |
169 # Location of the modprobe tool | |
170 .br | |
171 lcov_modprobe_tool = /sbin/modprobe | |
172 .br | |
173 | |
174 # Location of the rmmod tool | |
175 .br | |
176 lcov_rmmod_tool = /sbin/rmmod | |
177 .br | |
178 | |
179 # Location for temporary directories | 211 # Location for temporary directories |
180 .br | 212 .br |
181 lcov_tmp_dir = /tmp | 213 lcov_tmp_dir = /tmp |
182 .br | 214 .br |
| 215 |
| 216 # Show full paths during list operation if non\-zero |
| 217 .br |
| 218 lcov_list_full_path = 0 |
| 219 .br |
| 220 |
| 221 # Specify the maximum width for list output. This value is |
| 222 .br |
| 223 # ignored when lcov_list_full_path is non\-zero. |
| 224 .br |
| 225 lcov_list_width = 80 |
| 226 .br |
| 227 |
| 228 # Specify the maximum percentage of file names which may be |
| 229 .br |
| 230 # truncated when choosing a directory prefix in list output. |
| 231 .br |
| 232 # This value is ignored when lcov_list_full_path is non\-zero. |
| 233 .br |
| 234 lcov_list_truncate_max = 20 |
| 235 |
| 236 # Specify if function coverage data should be collected and |
| 237 .br |
| 238 # processed. |
| 239 .br |
| 240 lcov_function_coverage = 1 |
| 241 .br |
| 242 |
| 243 # Specify if branch coverage data should be collected and |
| 244 .br |
| 245 # processed. |
| 246 .br |
| 247 lcov_branch_coverage = 0 |
| 248 .br |
183 .PP | 249 .PP |
184 | 250 |
185 .SH OPTIONS | 251 .SH OPTIONS |
186 | 252 |
187 .BR genhtml_css_file " =" | 253 .BR genhtml_css_file " =" |
188 .I filename | 254 .I filename |
189 .IP | 255 .IP |
190 Specify an external style sheet file. Use this option to modify the appearance o
f the HTML output as generated by | 256 Specify an external style sheet file. Use this option to modify the appearance o
f the HTML output as generated by |
191 .BR genhtml . | 257 .BR genhtml . |
192 During output generation, a copy of this file will be placed in the output | 258 During output generation, a copy of this file will be placed in the output |
193 directory. | 259 directory. |
194 .br | 260 .br |
195 | 261 |
196 This option corresponds to the \-\-css\-file command line option of | 262 This option corresponds to the \-\-css\-file command line option of |
197 .BR genhtml . | 263 .BR genhtml . |
198 .br | 264 .br |
199 | 265 |
200 By default, a standard CSS file is generated. | 266 By default, a standard CSS file is generated. |
201 .PP | 267 .PP |
202 | 268 |
203 .BR genhtml_hi_limit " =" | 269 .BR genhtml_hi_limit " =" |
204 .I hi_limit | 270 .I hi_limit |
205 .br | 271 .br |
206 .BR genhtml_med_limit " =" | 272 .BR genhtml_med_limit " =" |
207 .I med_limit | 273 .I med_limit |
208 .br | 274 .br |
209 .BR genhtml_function_med_limit " =" | |
210 .I hi_limit | |
211 .br | |
212 .BR genhtml_function_med_limit " =" | |
213 .I med_limit | |
214 .IP | 275 .IP |
215 Specify coverage rate limits for classifying file entries. Use this option to | 276 Specify coverage rate limits for classifying file entries. Use this option to |
216 modify the coverage rates (in percent) for line or function coverage at which | 277 modify the coverage rates (in percent) for line, function and branch coverage at |
217 a result is classified as high, medium or low coverage. This classification | 278 which a result is classified as high, medium or low coverage. This |
218 affects the color of the corresponding entries on the overview pages of the | 279 classification affects the color of the corresponding entries on the overview |
219 HTML output: | 280 pages of the HTML output: |
220 .br | 281 .br |
221 | 282 |
222 High: hi_limit <= rate <= 100 default color: green | 283 High: hi_limit <= rate <= 100 default color: green |
223 .br | 284 .br |
224 Medium: med_limit <= rate < hi_limit default color: orange | 285 Medium: med_limit <= rate < hi_limit default color: orange |
225 .br | 286 .br |
226 Low: 0 <= rate < med_limit default color: red | 287 Low: 0 <= rate < med_limit default color: red |
227 .br | 288 .br |
228 | 289 |
229 Defaults are 50 and 15 percent for line coverage and 90 and 75 percent for | 290 Defaults are 90 and 75 percent. |
230 function coverage. | 291 .PP |
| 292 |
| 293 .BR genhtml_line_field_width " =" |
| 294 .I number_of_characters |
| 295 .IP |
| 296 Specify the width (in characters) of the source code view column containing |
| 297 line coverage information. |
| 298 .br |
| 299 |
| 300 Default is 12. |
| 301 .PP |
| 302 |
| 303 .BR genhtml_branch_field_width " =" |
| 304 .I number_of_characters |
| 305 .IP |
| 306 Specify the width (in characters) of the source code view column containing |
| 307 branch coverage information. |
| 308 .br |
| 309 |
| 310 Default is 16. |
231 .PP | 311 .PP |
232 | 312 |
233 .BR genhtml_overview_width " =" | 313 .BR genhtml_overview_width " =" |
234 .I pixel_size | 314 .I pixel_size |
235 .IP | 315 .IP |
236 Specify the width (in pixel) of the overview image created when generating HTML | 316 Specify the width (in pixel) of the overview image created when generating HTML |
237 output using the \-\-frames option of | 317 output using the \-\-frames option of |
238 .BR genhtml . | 318 .BR genhtml . |
239 .br | 319 .br |
240 | 320 |
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
431 .BR genhtml . | 511 .BR genhtml . |
432 .br | 512 .br |
433 | 513 |
434 This option can be set to 0 by using the \-\-no\-function\-coverage option of | 514 This option can be set to 0 by using the \-\-no\-function\-coverage option of |
435 .BR genhtml . | 515 .BR genhtml . |
436 .br | 516 .br |
437 | 517 |
438 Default is 1. | 518 Default is 1. |
439 .PP | 519 .PP |
440 | 520 |
| 521 .BR genhtml_branch_coverage " =" |
| 522 .IR 0 | 1 |
| 523 .IP |
| 524 If non\-zero, include branch coverage data when generating HTML output using |
| 525 .BR genhtml . |
| 526 .br |
| 527 |
| 528 This option can be set to 0 by using the \-\-no\-branch\-coverage option of |
| 529 .BR genhtml . |
| 530 .br |
| 531 |
| 532 Default is 1. |
| 533 .PP |
| 534 |
| 535 .BR genhtml_charset " =" |
| 536 .I charset |
| 537 .IP |
| 538 Specify the character set of all generated HTML pages. |
| 539 .br |
| 540 |
| 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 ). |
| 545 .br |
| 546 |
| 547 Default is UTF-8. |
| 548 .PP |
441 .BR geninfo_gcov_tool " =" | 549 .BR geninfo_gcov_tool " =" |
442 .I path_to_gcov | 550 .I path_to_gcov |
443 .IP | 551 .IP |
444 Specify the location of the gcov tool (see | 552 Specify the location of the gcov tool (see |
445 .BR gcov (1)) | 553 .BR gcov (1)) |
446 which is used to generate coverage information from data files. | 554 which is used to generate coverage information from data files. |
447 .br | 555 .br |
448 | 556 |
449 Default is 'gcov'. | 557 Default is 'gcov'. |
450 .PP | 558 .PP |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
485 .br | 593 .br |
486 | 594 |
487 This option corresponds to the \-\-compat\-libtool and \-\-no\-compat\-libtool | 595 This option corresponds to the \-\-compat\-libtool and \-\-no\-compat\-libtool |
488 command line option of | 596 command line option of |
489 .BR geninfo . | 597 .BR geninfo . |
490 .br | 598 .br |
491 | 599 |
492 Default is 1. | 600 Default is 1. |
493 .PP | 601 .PP |
494 | 602 |
| 603 .BR geninfo_external " =" |
| 604 .IR 0 | 1 |
| 605 .IP |
| 606 If non\-zero, capture coverage data for external source files. |
| 607 |
| 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 |
| 611 .BR lcov / geninfo . |
| 612 |
| 613 Default is 1. |
| 614 .PP |
| 615 |
| 616 .BR geninfo_gcov_all_blocks " =" |
| 617 .IR 0 | 1 |
| 618 .IP |
| 619 If non\-zero, call the gcov tool with option --all-blocks. |
| 620 |
| 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. |
| 626 |
| 627 Default is 1. |
| 628 .PP |
| 629 |
| 630 .BR geninfo_compat " =" |
| 631 .IR mode = value [, mode = value ,...] |
| 632 .IP |
| 633 Specify that geninfo should enable one or more compatibility modes |
| 634 when capturing coverage data. |
| 635 |
| 636 This option corresponds to the \-\-compat command line option of |
| 637 .BR geninfo . |
| 638 |
| 639 Default is 'libtool=on, hammer=auto, split_crc=auto'. |
| 640 .PP |
| 641 |
| 642 .BR geninfo_adjust_src_path " =" |
| 643 .IR pattern " => " replacement |
| 644 .br |
| 645 .BR geninfo_adjust_src_path " =" |
| 646 .I pattern |
| 647 .IP |
| 648 Adjust source paths when capturing coverage data. |
| 649 |
| 650 Use this option in situations where geninfo cannot find the correct |
| 651 path to source code files of a project. By providing a |
| 652 .I pattern |
| 653 in Perl regular expression format (see |
| 654 .BR perlre (1)) |
| 655 and an optional replacement string, you can instruct geninfo to |
| 656 remove or change parts of the incorrect source path. |
| 657 |
| 658 .B Example: |
| 659 .br |
| 660 |
| 661 1. When geninfo reports that it cannot find source file |
| 662 .br |
| 663 |
| 664 /path/to/src/.libs/file.c |
| 665 .br |
| 666 |
| 667 while the file is actually located in |
| 668 .br |
| 669 |
| 670 /path/to/src/file.c |
| 671 .br |
| 672 |
| 673 use the following parameter: |
| 674 .br |
| 675 |
| 676 geninfo_adjust_src_path = /.libs |
| 677 |
| 678 This will remove all "/.libs" strings from the path. |
| 679 |
| 680 2. When geninfo reports that it cannot find source file |
| 681 .br |
| 682 |
| 683 /tmp/build/file.c |
| 684 .br |
| 685 |
| 686 while the file is actually located in |
| 687 .br |
| 688 |
| 689 /usr/src/file.c |
| 690 .br |
| 691 |
| 692 use the following parameter: |
| 693 .br |
| 694 |
| 695 geninfo_adjust_src_path = /tmp/build => /usr/src |
| 696 .br |
| 697 |
| 698 This will change all "/tmp/build" strings in the path to "/usr/src". |
| 699 .PP |
| 700 |
| 701 .BR geninfo_auto_base " =" |
| 702 .IR 0 | 1 |
| 703 .IP |
| 704 If non\-zero, apply a heuristic to determine the base directory when |
| 705 collecting coverage data. |
| 706 .br |
| 707 |
| 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. |
| 713 .br |
| 714 |
| 715 Default is 1. |
| 716 .PP |
| 717 |
495 .BR lcov_gcov_dir " =" | 718 .BR lcov_gcov_dir " =" |
496 .I path_to_kernel_coverage_data | 719 .I path_to_kernel_coverage_data |
497 .IP | 720 .IP |
498 Specify the path to the directory where kernel coverage data can be found. | 721 Specify the path to the directory where kernel coverage data can be found |
| 722 or leave undefined for auto-detection. |
499 .br | 723 .br |
500 | 724 |
501 Default is '/proc/gcov'. | 725 Default is auto-detection. |
502 .PP | |
503 | |
504 .BR lcov_insmod_tool " =" | |
505 .I path_to_insmod | |
506 .IP | |
507 Specify the location of the insmod tool used to load kernel modules. | |
508 .br | |
509 | |
510 Default is '/sbin/insmod'. | |
511 .PP | |
512 | |
513 .BR lcov_modprobe_tool " =" | |
514 .I path_to_modprobe | |
515 .IP | |
516 Specify the location of the modprobe tool used to load kernel modules. | |
517 .br | |
518 | |
519 Default is '/sbin/modprobe'. | |
520 .PP | |
521 | |
522 .BR lcov_rmmod_tool " =" | |
523 .I path_to_rmmod | |
524 .IP | |
525 Specify the location of the rmmod tool used to unload kernel modules. | |
526 .br | |
527 | |
528 Default is '/sbin/rmmod'. | |
529 .PP | 726 .PP |
530 | 727 |
531 .BR lcov_tmp_dir " =" | 728 .BR lcov_tmp_dir " =" |
532 .I temp | 729 .I temp |
533 .IP | 730 .IP |
534 Specify the location of a directory used for temporary files. | 731 Specify the location of a directory used for temporary files. |
535 .br | 732 .br |
536 | 733 |
537 Default is '/tmp'. | 734 Default is '/tmp'. |
538 .PP | 735 .PP |
539 | 736 |
| 737 .BR lcov_list_full_path " =" |
| 738 .IR 0 | 1 |
| 739 .IP |
| 740 If non-zero, print the full path to source code files during a list operation. |
| 741 .br |
| 742 |
| 743 This option corresponds to the \-\-list\-full\-path option of |
| 744 .BR lcov . |
| 745 .br |
| 746 |
| 747 Default is 0. |
| 748 .PP |
| 749 |
| 750 .BR lcov_list_max_width " =" |
| 751 .IR width |
| 752 .IP |
| 753 Specify the maximum width for list output. This value is ignored when |
| 754 lcov_list_full_path is non\-zero. |
| 755 .br |
| 756 |
| 757 Default is 80. |
| 758 .PP |
| 759 |
| 760 .BR lcov_list_truncate_max |
| 761 .B " =" |
| 762 .IR percentage |
| 763 .IP |
| 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. |
| 767 .br |
| 768 |
| 769 Default is 20. |
| 770 .PP |
| 771 |
| 772 .BR lcov_function_coverage " =" |
| 773 .IR 0 | 1 |
| 774 .IP |
| 775 Specify whether lcov should handle function coverage data. |
| 776 .br |
| 777 |
| 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. |
| 783 .br |
| 784 |
| 785 Default is 1. |
| 786 .PP |
| 787 |
| 788 .BR lcov_branch_coverage " =" |
| 789 .IR 0 | 1 |
| 790 .IP |
| 791 Specify whether lcov should handle branch coverage data. |
| 792 .br |
| 793 |
| 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. |
| 799 .br |
| 800 |
| 801 Default is 0. |
| 802 .PP |
| 803 |
540 .SH FILES | 804 .SH FILES |
541 | 805 |
542 .TP | 806 .TP |
543 .I /etc/lcovrc | 807 .I /etc/lcovrc |
544 The system\-wide | 808 The system\-wide |
545 .B lcov | 809 .B lcov |
546 configuration file. | 810 configuration file. |
547 | 811 |
548 .TP | 812 .TP |
549 .I ~/.lcovrc | 813 .I ~/.lcovrc |
550 The individual per\-user configuration file. | 814 The individual per\-user configuration file. |
551 .PP | 815 .PP |
552 | 816 |
553 .SH SEE ALSO | 817 .SH SEE ALSO |
554 .BR lcov (1), | 818 .BR lcov (1), |
555 .BR genhtml (1), | 819 .BR genhtml (1), |
556 .BR geninfo (1), | 820 .BR geninfo (1), |
557 .BR gcov (1) | 821 .BR gcov (1) |
OLD | NEW |