[libvirt] How to get GCOV result of make check?

Martin Kletzander mkletzan at redhat.com
Fri Apr 8 08:21:09 UTC 2016


On Fri, Apr 08, 2016 at 08:10:56AM +0000, Zhangbo (Oscar) wrote:
>Hi all:
>    I want to get the coverage result of 'make check', here is my way:
>    1.  ./configure *****
>    2.  make clean -j
>    *3*.  find ./ -name Makefile |xargs sed -i "s/\= gcc/= gcc -fprofile-arcs -ftest-coverage/g"      # add gcov-related cflags
>    4.  make check -j
>    5.  lcov -d . -c -o libvirt.info
>    6.  genhtml libvirt.info -o libvirtresult
>
>    My key work Is step 3, however, I don't think it's a graceful way to get gcov result.
>    How do you usually get the gcov results, thanks!
>

check './configure --help', look for '--enable-test-coverage'

>Oscar.
>
>--
>libvir-list mailing list
>libvir-list at redhat.com
>https://www.redhat.com/mailman/listinfo/libvir-list
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20160408/2c2f9459/attachment-0001.sig>


More information about the libvir-list mailing list