blob: e2f057bfb53ea7a310768591a797c9c0a2b44006 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
#!/bin/bash
set -e
for path in _coverage/*.lcov; do
lcov --config-file ci/lcovrc -r "${path}" '*/_build/*' -o "$(pwd)/${path}"
lcov --config-file ci/lcovrc -e "${path}" "$(pwd)/*" -o "$(pwd)/${path}"
done
genhtml \
--ignore-errors=source \
--config-file ci/lcovrc \
_coverage/*.lcov \
-o _coverage/coverage
cd _coverage
rm -f ./*.lcov
cat >index.html <<EOL
<html>
<head><title>at-spi2-core Coverage</title></head>
<body>
<div>
<ul>
<li><a href="coverage/index.html">Coverage report</a></li>
</ul>
</div>
</body>
</html>
EOL
|