1LCOVRC(5) File Formats Manual LCOVRC(5)
2
3
4
6 lcovrc - lcov configuration file
7
8
10 The lcovrc file contains configuration information for the lcov code
11 coverage tool (see lcov(1)).
12
13 The system-wide configuration file is located at /etc/lcovrc. To
14 change settings for a single user, place a customized copy of this file
15 at location ~/.lcovrc. Where available, command-line options override
16 configuration file settings.
17
18 Lines in a configuration file can either be:
19
20 * empty lines or lines consisting only of white space characters.
21 These lines are ignored.
22
23 * comment lines which start with a hash sign ('#'). These are
24 treated like empty lines and will be ignored.
25
26 * statements in the form 'key = value'. A list of valid state‐
27 ments and their description can be found in section 'OPTIONS'
28 below.
29
30 Example configuration:
31
32 #
33 # Example LCOV configuration file
34 #
35
36 # External style sheet file
37 #genhtml_css_file = gcov.css
38
39 # Coverage rate limits
40 genhtml_hi_limit = 50
41 genhtml_med_limit = 15
42
43 # Width of overview image
44 genhtml_overview_width = 80
45
46 # Resolution of overview navigation
47 genhtml_nav_resolution = 4
48
49 # Offset for source code navigation
50 genhtml_nav_offset = 10
51
52 # Do not remove unused test descriptions if non-zero
53 genhtml_keep_descriptions = 0
54
55 # Do not remove prefix from directory names if non-zero
56 genhtml_no_prefix = 0
57
58 # Do not create source code view if non-zero
59 genhtml_no_source = 0
60
61 # Specify size of tabs
62 genhtml_num_spaces = 8
63
64 # Highlight lines with converted-only data if non-zero
65 genhtml_highlight = 0
66
67 # Include color legend in HTML output if non-zero
68 genhtml_legend = 0
69
70 # Include HTML file at start of HTML output
71 #genhtml_html_prolog = prolog.html
72
73 # Include HTML file at end of HTML output
74 #genhtml_html_epilog = epilog.html
75
76 # Use custom HTML file extension
77 #genhtml_html_extension = html
78
79 # Location of the gcov tool
80 #geninfo_gcov_tool = gcov
81
82 # Adjust test names if non-zero
83 #geninfo_adjust_testname = 0
84
85 # Calculate a checksum for each line if non-zero
86 geninfo_checksum = 0
87
88 # Enable libtool compatibility mode if non-zero
89 geninfo_compat_libtool = 0
90
91 # Directory containing gcov kernel files
92 lcov_gcov_dir = /proc/gcov
93
94 # Location of the insmod tool
95 lcov_insmod_tool = /sbin/insmod
96
97 # Location of the modprobe tool
98 lcov_modprobe_tool = /sbin/modprobe
99
100 # Location of the rmmod tool
101 lcov_rmmod_tool = /sbin/rmmod
102
103 # Location for temporary directories
104 lcov_tmp_dir = /tmp
105
107 genhtml_css_file = filename
108
109 Specify an external style sheet file. Use this option to modify
110 the appearance of the HTML output as generated by genhtml. Dur‐
111 ing output generation, a copy of this file will be placed in the
112 output directory.
113
114 This option corresponds to the --css-file command line option of
115 genhtml.
116
117 By default, a standard CSS file is generated.
118
119 genhtml_hi_limit = hi_limit
120 genhtml_med_limit = med_limit
121
122 Specify coverage rate limits for classifying file entries. Use
123 this option to modify the coverage rates (in percent) at which a
124 result is classified as high, medium or low coverage. This clas‐
125 sification affects the color of the corresponding entries on the
126 overview pages of the HTML output:
127
128 High: hi_limit <= rate <= 100 default color: green
129 Medium: med_limit <= rate < hi_limit default color: orange
130 Low: 0 <= rate < med_limit default color: red
131
132 Defaults are 50 and 15 respectively.
133
134 genhtml_overview_width = pixel_size
135
136 Specify the width (in pixel) of the overview image created when
137 generating HTML output using the --frames option of genhtml.
138
139 Default is 80.
140
141 genhtml_nav_resolution = lines
142
143 Specify the resolution of overview navigation when generating
144 HTML output using the --frames option of genhtml. This number
145 specifies the maximum difference in lines between the position a
146 user selected from the overview and the position the source code
147 window is scrolled to.
148
149 Default is 4.
150
151 genhtml_nav_offset = lines
152
153 Specify the overview navigation line offset as applied when gen‐
154 erating HTML output using the --frames option of genhtml.
155
156 Clicking a line in the overview image should show the source
157 code view at a position a bit further up, so that the requested
158 line is not the first line in the window. This number specifies
159 that offset.
160
161 Default is 10.
162
163 genhtml_keep_descriptions = 0|1
164
165 If non-zero, keep unused test descriptions when generating HTML
166 output using genhtml.
167
168 This option corresponds to the --keep-descriptions option of
169 genhtml.
170
171 Default is 0.
172
173 genhtml_no_prefix = 0|1
174
175 If non-zero, do not try to find and remove a common prefix from
176 directory names.
177
178 This option corresponds to the --no-prefix option of genhtml.
179
180 Default is 0.
181
182 genhtml_no_source = 0|1
183
184 If non-zero, do not create a source code view when generating
185 HTML output using genhtml.
186
187 This option corresponds to the --no-source option of genhtml.
188
189 Default is 0.
190
191 genhtml_num_spaces = num
192
193 Specify the number of spaces to use as replacement for tab char‐
194 acters in the HTML source code view as generated by genhtml.
195
196 This option corresponds to the --num-spaces option of genthml.
197
198 Default is 8.
199
200
201 genhtml_highlight = 0|1
202
203 If non-zero, highlight lines with converted-only data in HTML
204 output as generated by genhtml.
205
206 This option corresponds to the --highlight option of genhtml.
207
208 Default is 0.
209
210 genhtml_legend = 0|1
211
212 If non-zero, include a legend explaining the meaning of color
213 coding in the HTML output as generated by genhtml.
214
215 This option corresponds to the --legend option of genhtml.
216
217 Default is 0.
218
219 genhtml_html_prolog = filename
220
221 If set, include the contents of the specified file at the begin‐
222 ning of HTML output.
223
224 This option corresponds to the --html-prolog option of genhtml.
225
226 Default is to use no extra prolog.
227
228 genhtml_html_epilog = filename
229
230 If set, include the contents of the specified file at the end of
231 HTML output.
232
233 This option corresponds to the --html-epilog option of genhtml.
234
235 Default is to use no extra epilog.
236
237 genhtml_html_extension = extension
238
239 If set, use the specified string as filename extension for gen‐
240 erated HTML files.
241
242 This option corresponds to the --html-extension option of gen‐
243 html.
244
245 Default extension is "html".
246
247 geninfo_gcov_tool = path_to_gcov
248
249 Specify the location of the gcov tool (see gcov(1)) which is
250 used to generate coverage information from data files.
251
252 Default is 'gcov'.
253
254 geninfo_adjust_testname = 0|1
255
256 If non-zero, adjust test names to include operating system
257 information when capturing coverage data.
258
259 Default is 0.
260
261 geninfo_checksum = 0|1
262
263 If non-zero, generate source code checksums when capturing cov‐
264 erage data. Checksums are useful to prevent merging coverage
265 data from incompatible source code versions but checksum genera‐
266 tion increases the size of coverage files and the time used to
267 generate those files.
268
269 This option corresponds to the --checksum and --no-checksum com‐
270 mand line option of geninfo.
271
272 Default is 0.
273
274 geninfo_compat_libtool = 0|1
275
276 If non-zero, enable libtool compatibility mode. When libtool
277 compatibility mode is enabled, lcov will assume that the source
278 code relating to a .da file located in a directory named ".libs"
279 can be found in its parent directory.
280
281 This option corresponds to the --compat-libtool and --no-com‐
282 pat-libtool command line option of geninfo.
283
284 Default is 1.
285
286 lcov_gcov_dir = path_to_kernel_coverage_data
287
288 Specify the path to the directory where kernel coverage data can
289 be found.
290
291 Default is '/proc/gcov'.
292
293 lcov_insmod_tool = path_to_insmod
294
295 Specify the location of the insmod tool used to load kernel mod‐
296 ules.
297
298 Default is '/sbin/insmod'.
299
300 lcov_modprobe_tool = path_to_modprobe
301
302 Specify the location of the modprobe tool used to load kernel
303 modules.
304
305 Default is '/sbin/modprobe'.
306
307 lcov_rmmod_tool = path_to_rmmod
308
309 Specify the location of the rmmod tool used to unload kernel
310 modules.
311
312 Default is '/sbin/rmmod'.
313
314 lcov_tmp_dir = temp
315
316 Specify the location of a directory used for temporary files.
317
318 Default is '/tmp'.
319
321 /etc/lcovrc
322 The system-wide lcov configuration file.
323
324
325 ~/.lcovrc
326 The individual per-user configuration file.
327
329 lcov(1), genhtml(1), geninfo(1), gcov(1)
330
331
332
333 Mar 07 2005 LCOVRC(5)