Skip to content
Snippets Groups Projects
Commit bfb6c571 authored by Craig Tiller's avatar Craig Tiller
Browse files

Merge pull request #4414 from nicolasnoble/coverage-option

Improving local test coverage with options.
parents ac5e56bc f0e3354b
No related branches found
No related tags found
No related merge requests found
...@@ -33,9 +33,10 @@ set -ex ...@@ -33,9 +33,10 @@ set -ex
out=$(readlink -f ${1:-coverage}) out=$(readlink -f ${1:-coverage})
root=$(readlink -f $(dirname $0)/../..) root=$(readlink -f $(dirname $0)/../..)
shift
tmp=$(mktemp) tmp=$(mktemp)
cd $root cd $root
tools/run_tests/run_tests.py -c gcov -l c c++ || true tools/run_tests/run_tests.py -c gcov -l c c++ $@ || true
lcov --capture --directory . --output-file $tmp lcov --capture --directory . --output-file $tmp
genhtml $tmp --output-directory $out genhtml $tmp --output-directory $out
rm $tmp rm $tmp
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment