Start hacking away with GCOV_PREFIX

See: https://gcc.gnu.org/onlinedocs/gcc/Cross-profiling.html
This commit is contained in:
Enji Cooper 2017-10-31 06:59:28 +00:00
parent 7c008e4270
commit fb4132c662
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/projects/runtime-coverage/; revision=325218

View File

@ -32,6 +32,7 @@ SCRIPT=${0##*/}
: ${COVERAGE_OUTPUT=coverage-output}
: ${GCOV=gcov}
: ${GCOV_PREFIX=$(pwd)}
error()
{
@ -67,7 +68,7 @@ trap "rm -Rf '$COVERAGE_TMP'" EXIT INT TERM
set -e
lcov --gcov-tool ${GCOV} --capture --directory ${COVERAGE_TMP} --output-file \
lcov --gcov-tool ${GCOV} --capture --directory ${GCOV_PREFIX} --output-file \
${COVERAGE_TMP}/coverage.info
genhtml ${COVERAGE_TMP}/coverage.info --output-directory ${COVERAGE_OUTPUT}