答复: How to get GCOV result of make check?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

Great, It works, and we found that 'make coverage' works as well , Thank you very much.
>>Oscar.
>>
>>--

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]