diff options
Diffstat (limited to 'test/test_coverage.sh')
-rwxr-xr-x | test/test_coverage.sh | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/test/test_coverage.sh b/test/test_coverage.sh new file mode 100755 index 0000000..9df5ebc --- /dev/null +++ b/test/test_coverage.sh @@ -0,0 +1,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 -b .. -c > coverage.lcov +mkdir -p ./coverage +genhtml -o coverage coverage.lcov +echo "Report written to:" +echo "../build/default/coverage/index.html" + |