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