You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucy.apache.org by nw...@apache.org on 2013/03/04 22:09:26 UTC

[lucy-commits] [2/4] git commit: refs/heads/c-bindings-wip2 - Add test coverage script

Add test coverage script


Project: http://git-wip-us.apache.org/repos/asf/lucy/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucy/commit/345de4a8
Tree: http://git-wip-us.apache.org/repos/asf/lucy/tree/345de4a8
Diff: http://git-wip-us.apache.org/repos/asf/lucy/diff/345de4a8

Branch: refs/heads/c-bindings-wip2
Commit: 345de4a823192003242e690cdd3c8d3b988514d8
Parents: b3c4ef7
Author: Nick Wellnhofer <we...@aevum.de>
Authored: Mon Mar 4 21:29:45 2013 +0100
Committer: Nick Wellnhofer <we...@aevum.de>
Committed: Mon Mar 4 21:29:45 2013 +0100

----------------------------------------------------------------------
 c/t/lcov.sh |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucy/blob/345de4a8/c/t/lcov.sh
----------------------------------------------------------------------
diff --git a/c/t/lcov.sh b/c/t/lcov.sh
new file mode 100755
index 0000000..72bdc8a
--- /dev/null
+++ b/c/t/lcov.sh
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+set -ex
+
+lcov --zerocounters --directory .. --base-directory .
+t/test_lucy
+lcov --capture --directory .. --base-directory . --rc lcov_branch_coverage=1 --output-file lucy.info
+genhtml --branch-coverage --output-directory coverage lucy.info
+