File tree Expand file tree Collapse file tree 3 files changed +30
-11
lines changed Expand file tree Collapse file tree 3 files changed +30
-11
lines changed Original file line number Diff line number Diff line change 1+ #! /bin/bash -ex
2+ #
3+ # Run tests with coverage reporting enabled.
4+
5+ export CXXFLAGS=' -coverage'
6+ export LDFLAGS=' -coverage'
7+
8+ rm -f CMakeCache.txt
9+ rm -rf CMakeFiles
10+
11+ cmake -D CMAKE_BUILD_TYPE=Debug .
12+
13+ make check
Original file line number Diff line number Diff line change 11#! /bin/bash -ex
22#
3- # Run tests with coverage reporting enabled .
3+ # Run tests for Coveralls .
44
5- export CXXFLAGS=' -coverage'
6- export LDFLAGS=' -coverage'
5+ ./coverage.bash
76
8- rm -f CMakeCache.txt
9- rm -rf CMakeFiles
10-
11- cmake -D CMAKE_BUILD_TYPE=Debug .
12-
13- make check
14-
15- # For Coveralls.
167path=$PWD
178for f in * .cpp * .h
189do
Original file line number Diff line number Diff line change 1+ #! /bin/bash -ex
2+ #
3+ # Run tests with coverage reporting enabled.
4+
5+ ./coverage.bash
6+
7+ # Create HTML report.
8+ lcov --directory=' CMakeFiles/perceptualdiff.dir' --output-file=' lcov_tmp.info' --capture
9+ lcov --output-file=' lcov.info' --extract ' lcov_tmp.info' " $( pwd) /*"
10+ genhtml --output-directory=' coverage_output' lcov.info
11+
12+ # Remove intermediate lcov output.
13+ rm ' lcov_tmp.info'
14+
15+ python -m webbrowser -n " file://${PWD} /coverage_output/index.html"
You can’t perform that action at this time.
0 commit comments