File: lcov.bash

package info (click to toggle)
perceptualdiff 1.2-2
  • links: PTS
  • area: main
  • in suites: bullseye, buster, sid, stretch
  • size: 1,008 kB
  • ctags: 76
  • sloc: cpp: 948; sh: 100; makefile: 50
file content (15 lines) | stat: -rwxr-xr-x 438 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/bash -ex
#
# Run tests with coverage reporting enabled.

./coverage.bash

# Create HTML report.
lcov --directory='CMakeFiles/perceptualdiff.dir' --output-file='lcov_tmp.info' --capture
lcov --output-file='lcov.info' --extract 'lcov_tmp.info' "$(pwd)/*"
genhtml --output-directory='coverage_output' lcov.info

# Remove intermediate lcov output.
rm 'lcov_tmp.info'

python -m webbrowser -n "file://${PWD}/coverage_output/index.html"