[lintian] 01/01: t/runtests: Skip POD and time under --coverage
This is an automated email from the git hooks/post-receive script.
nthykier pushed a commit to branch master
in repository lintian.
commit 607f73333e969f9a334cd792d017384a2d3496a8
Author: Niels Thykier <niels@thykier.net>
Date: Mon Mar 24 22:28:46 2014 +0100
t/runtests: Skip POD and time under --coverage
Skip POD and "time" coverage - we use Test::Pod::Coverage for the
former and Devel::NYTProf is more useful for the latter. This should
reduce the memory consumption of "cover" when transforming the
cover_db.
Signed-off-by: Niels Thykier <niels@thykier.net>
---
t/runtests | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/t/runtests b/t/runtests
index a0cf169..6106951 100755
--- a/t/runtests
+++ b/t/runtests
@@ -193,7 +193,12 @@ unless (-d $TESTSET) {
if (defined($coverage)) {
my $harness_perl_switches = $ENV{'HARNESS_PERL_SWITCHES'}//'';
+ # Only collect coverage for stuff that D::NYTProf and
+ # Test::Pod::Coverage cannot do for us. This makes cover use less
+ # RAM in the other end.
+ my @criteria = qw(statement branch condition path subroutine);
my $coverage_arg = '-MDevel::Cover=-silent,1,+ignore,^(.*/)?t/scripts/.+';
+ $coverage_arg .= ',-coverage,' . join(',-coverage,', @criteria);
$coverage_arg .= ',' . $coverage if $coverage ne '';
$ENV{'LINTIAN_COVERAGE'} = 1;
$harness_perl_switches .= ' ' . $coverage_arg;
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/lintian/lintian.git
Reply to: