summaryrefslogtreecommitdiffstats
path: root/third_party/heimdal/tools/cov.sh
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/heimdal/tools/cov.sh')
-rw-r--r--third_party/heimdal/tools/cov.sh19
1 files changed, 19 insertions, 0 deletions
diff --git a/third_party/heimdal/tools/cov.sh b/third_party/heimdal/tools/cov.sh
new file mode 100644
index 0000000..8ceba2d
--- /dev/null
+++ b/third_party/heimdal/tools/cov.sh
@@ -0,0 +1,19 @@
+
+d="lib/roken lib/krb5 lib/gssapi lib/ntlm tests/kdc tests/gss kuser"
+
+basedir=$(basedir $0)
+
+${basedir}/../configure CFLAGS='-fprofile-arcs -ftest-coverage' > log
+
+lcov --directory . --zerocounters
+
+make all check > log
+
+lcov --directory . --capture --output-file heimdal-lcov.info
+
+objdir="/Volumes/data/Users/lha/obj/hg"
+srcdir="/Volumes/data/Users/lha/src/heimdal/git"
+
+perl -pi -e "s@SF:$objdir/(.*.[ly])\$@SF:$srcdir/\$1@" heimdal-lcov.info
+
+genhtml heimdal-lcov.info