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

2016-04-08 Thread Martin Kletzander
On Fri, Apr 08, 2016 at 08:10:56AM +, 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

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

2016-04-08 Thread Zhangbo (Oscar)
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