File: test_coverage.sh

package info (click to toggle)
slv2 0.6.6-5
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 900 kB
  • ctags: 673
  • sloc: ansic: 5,093; python: 536; makefile: 103; cpp: 38; sh: 8; lisp: 7
file content (16 lines) | stat: -rwxr-xr-x 401 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh

# Run this script (from the directory it's in) after building
# (with waf configure --debug --test) to run the
# unit tests and generate a code coverage report

cd ../build/default

lcov -d ./src -z
./test/slv2_test
lcov -d ./src -d ./test -b .. -c > coverage.lcov
mkdir -p ./coverage
genhtml -o coverage coverage.lcov
echo "Report written to:"
echo "../build/default/coverage/index.html"