|
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. |