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
[email protected]
https://www.redhat.com/mailman/listinfo/libvir-list

Attachment: signature.asc
Description: Digital signature

--
libvir-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/libvir-list

Reply via email to