aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/run_tests/run_lcov.sh
blob: 6f22b0e8a4110389edecf92801448a80c1281a03 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/bash

set -ex

out=`realpath ${1:-coverage}`

root=`realpath $(dirname $0)/../..`
tmp=`mktemp`
cd $root
tools/run_tests/run_tests.py -c gcov
lcov --capture --directory . --output-file $tmp
genhtml $tmp --output-directory $out
rm $tmp
if which xdg-open > /dev/null
then
  xdg-open file://$out/index.html
fi