diff options
author | Christian Grothoff <christian@grothoff.org> | 2009-05-29 00:46:26 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2009-05-29 00:46:26 +0000 |
commit | 0a217a8df1657b4334b55b0e4a6c7837a8dbcfd9 (patch) | |
tree | 6b552f40eb089db96409a312a98d9b12bd669102 /contrib/coverage.sh | |
download | gnunet-0a217a8df1657b4334b55b0e4a6c7837a8dbcfd9.tar.gz gnunet-0a217a8df1657b4334b55b0e4a6c7837a8dbcfd9.zip |
ng
Diffstat (limited to 'contrib/coverage.sh')
-rwxr-xr-x | contrib/coverage.sh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/contrib/coverage.sh b/contrib/coverage.sh new file mode 100755 index 000000000..72314ae67 --- /dev/null +++ b/contrib/coverage.sh | |||
@@ -0,0 +1,13 @@ | |||
1 | #!/bin/sh | ||
2 | # make sure configure was run with coverage enabled... | ||
3 | lcov --directory . --zerocounters | ||
4 | make check | ||
5 | for n in `find * -name "*.gc??" | grep libs` | ||
6 | do | ||
7 | cd `dirname $n` | ||
8 | mv `basename $n` .. | ||
9 | cd - | ||
10 | done | ||
11 | lcov --directory . --capture --output-file app.info | ||
12 | mkdir -p doc/coverage | ||
13 | genhtml -o doc/coverage app.info | ||