diff options
Diffstat (limited to 'contrib/coverage.sh')
-rwxr-xr-x | contrib/coverage.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/contrib/coverage.sh b/contrib/coverage.sh new file mode 100755 index 00000000..8d5787b2 --- /dev/null +++ b/contrib/coverage.sh | |||
@@ -0,0 +1,7 @@ | |||
1 | #!/bin/sh | ||
2 | # make sure configure was run with coverage enabled... | ||
3 | lcov --directory . --zerocounters | ||
4 | make check | ||
5 | lcov --directory . --capture --output-file app.info | ||
6 | mkdir /tmp/coverage | ||
7 | genhtml -o /tmp/coverage app.info | ||