|
From: Lieske, R. <Rob...@ca...> - 2008-02-06 09:47:20
|
Hi, I want to compute code coverage with valgrind. While callgrind and cachegrind (in conjunction with kachegrind) do provide information about individual lines of code, they do not provide metrices about code not covered. It is difficult to look at individual files to find out, if the code is covered and how much that is. I found at http://www.brainmurders.eclipse.co.uk/covergrind.html a tool that could match my needs. It is provided as a patch to valgrind (seems not to work with valgrind 3.3.0, but with 3.2.3). However it is not possible to get the code of valgrind from svn://svn.valgrind.org/valgrind/trunk as noted at http://valgrind.org/downloads/repository.html. Doing so results in the following error message: $ svn co svn://svn.valgrind.org/valgrind/trunk valgrind svn: Can't connect to host 'svn.valgrind.org': Connection refused A Ping to svn.valgrind.org results in 100% packet loss. Is the server down? The tarball valgrind-3.2.3.tar.bz2 does not contain the autogen.sh file, so covergrind does not get included in the make process. I installed the autoconf package and tried some old autogen.sh file from http://valgrind.cvs.sourceforge.net/valgrind/valgrind/, but this does not work either (aclocal not found). My box runs SuseLinux 9.3. How can I get the stuff working? TIA, Robert PS: Will also try out gcov with ggcov, but I'm not sure, if it works with the directory structure of my projects source code. If you have any hints, please let me know. |
|
From: Cerion Armour-B. <ce...@va...> - 2008-02-06 16:29:50
|
www.valgrind.org was down for maintainance yesterday for a few hours = try again... Cerion On Wednesday 06 Feb 2008, Lieske, Robert wrote: > Hi, > > I want to compute code coverage with valgrind. > While callgrind and cachegrind (in conjunction with kachegrind) do > provide information about individual lines of code, they do not provide > metrices about code not covered. It is difficult to look at individual > files to find out, if the code is covered and how much that is. > I found at http://www.brainmurders.eclipse.co.uk/covergrind.html a tool > that could match my needs. It is provided as a patch to valgrind (seems > not to work with valgrind 3.3.0, but with 3.2.3). However it is not > possible to get the code of valgrind from > svn://svn.valgrind.org/valgrind/trunk as noted at > http://valgrind.org/downloads/repository.html. Doing so results in the > following error message: > > $ svn co svn://svn.valgrind.org/valgrind/trunk valgrind > svn: Can't connect to host 'svn.valgrind.org': Connection refused > > A Ping to svn.valgrind.org results in 100% packet loss. Is the server > down? > > The tarball valgrind-3.2.3.tar.bz2 does not contain the autogen.sh file, > so covergrind does not get included in the make process. I installed the > autoconf package and tried some old autogen.sh file from > http://valgrind.cvs.sourceforge.net/valgrind/valgrind/, but this does > not work either (aclocal not found). > > My box runs SuseLinux 9.3. > > How can I get the stuff working? > > > TIA, > Robert > > PS: Will also try out gcov with ggcov, but I'm not sure, if it works > with the directory structure of my projects source code. If you have any > hints, please let me know. > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Valgrind-users mailing list > Val...@li... > https://lists.sourceforge.net/lists/listinfo/valgrind-users |
|
From: Lieske, R. <Rob...@ca...> - 2008-02-07 08:09:29
|
Hi, > www.valgrind.org was down for maintainance yesterday for a few hours = try again... its an firewall issue on my site. Using a different connection I was able to checkout from svn.valgrind.org. The autogen.sh is still the same. I needed to install another package (automake) to run the script and compile valgrind with covergrind. However I was kind of disappointed with the result, as I found out, that the reported coverage was dependend on compiler settings (-fprofile-arcs -ftest-coverage). Then I noticed that cachegrind and callgrind report the same wrong result. Let me check with VCov. I'll start a new thread then. Best regards, Robert |
|
From: Nicholas N. <nj...@cs...> - 2008-02-06 21:10:19
|
On Wed, 6 Feb 2008, Lieske, Robert wrote: > I want to compute code coverage with valgrind. I just committed a coverage tool to a branch. I'll forward to this list the message I sent to the developers list. I haven't tried Covergrind, so I don't know how it compares to my tool. Nick |