1GCOV2PERL(1) User Contributed Perl Documentation GCOV2PERL(1)
2
3
4
6 gcov2perl - convert gcov files to Devel::Cover databases
7
9 version 1.40
10
12 gcov2perl -h -i -v -db database gcov_files
13
15 Convert gcov files to Devel::Cover databases.
16
18 The following command line options are supported:
19
20 -db database - specify the database to use
21
22 -h -help - show help
23 -i -info - show documentation
24 -v -version - show version
25
27 To obtain coverage of XS files they must first be compiled with the
28 appropriate options. In a standard Makefile environment, such as that
29 created by ExtUtils::MakeMaker, this can be accomplished with the
30 command:
31
32 HARNESS_PERL_SWITCHES=-MDevel::Cover make test \
33 CCFLAGS=-O0\ -fprofile-arcs\ -ftest-coverage \
34 OTHERLDFLAGS=-fprofile-arcs\ -ftest-coverage
35
36 If you have already built your object files it may be necessary to run
37 make clean first, or to find some other way to ensure that they get
38 rebuilt with the options gcov requires.
39
40 Now the code coverage data has been collected "gcov" needs to be run:
41
42 gcov Mylib.xs
43
44 This will create one or more gcov files on which you can run
45 "gcov2perl":
46
47 gcov2perl Mylib.xs.gcov
48
49 Finally, "cover" should be run as usual with any options required:
50
51 cover
52
53 If you are running everything with standard options, you can do all
54 this with one command:
55
56 cover -test
57
59 The following exit values are returned:
60
61 0 All files converted successfully
62 >0 An error occurred.
63
65 Devel::Cover
66
68 Huh?
69
71 Copyright 2001-2023, Paul Johnson (paul@pjcj.net)
72
73 This software is free. It is licensed under the same terms as Perl
74 itself.
75
76 The latest version of this software should be available from my
77 homepage: http://www.pjcj.net
78
79
80
81perl v5.38.2 2023-11-30 GCOV2PERL(1)