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/c383707e Tree: http://git-wip-us.apache.org/repos/asf/lucy/tree/c383707e Diff: http://git-wip-us.apache.org/repos/asf/lucy/diff/c383707e Branch: refs/heads/master Commit: c383707ef3f7041a0dc5be4e0ab0b15c8eba655d Parents: 4e5a61d Author: Nick Wellnhofer <[email protected]> Authored: Mon Mar 4 21:29:45 2013 +0100 Committer: Nick Wellnhofer <[email protected]> Committed: Sat Mar 9 17:51:55 2013 +0100 ---------------------------------------------------------------------- c/t/lcov.sh | 9 +++++++++ 1 files changed, 9 insertions(+), 0 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/lucy/blob/c383707e/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 +
