Merge pull request #4039 from ctiller/covrep

Coverage improvements
reviewable/pr3905/r11^2
Nicolas Noble 9 years ago
commit 52541439e4
  1. 12
      tools/run_tests/post_tests_c.sh

@ -34,8 +34,12 @@ if [ "$CONFIG" != "gcov" ] ; then exit ; fi
root=$(readlink -f $(dirname $0)/../..)
out=$root/reports/c_cxx_coverage
tmp=$(mktemp)
tmp1=$(mktemp)
tmp2=$(mktemp)
cd $root
lcov --capture --directory . --output-file $tmp
genhtml $tmp --output-directory $out
rm $tmp
lcov --capture --directory . --output-file $tmp1
lcov --extract $tmp1 "$root/src/*" "$root/include/*" --output-file $tmp2
genhtml $tmp2 --output-directory $out
rm $tmp2
rm $tmp1

Loading…
Cancel
Save