- perl extensions that hide and store warnings while running test scripts

PR:		ports/73235
Submitted by:	Alex Kapranoff <kappa AT rambler-co dot ru>
Approved by:	co-mentor (vanilla)
This commit is contained in:
Cheng-Lung Sung 2004-10-29 03:11:11 +00:00
parent bbaed92336
commit 0a992ce7c9
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=120450
5 changed files with 48 additions and 0 deletions

View file

@ -1005,6 +1005,7 @@
SUBDIR += p5-Test-Inline
SUBDIR += p5-Test-Manifest
SUBDIR += p5-Test-MockObject
SUBDIR += p5-Test-NoWarnings
SUBDIR += p5-Test-Pod
SUBDIR += p5-Test-Reporter
SUBDIR += p5-Test-Simple

View file

@ -0,0 +1,30 @@
# New ports collection makefile for: p5-Test-NoWarnings
# Date created: May 12th 2004
# Whom: Alex Kapranoff <alex@kapranoff.ru>
#
# $FreeBSD$
#
PORTNAME= Test-NoWarnings
PORTVERSION= 0.07
CATEGORIES= devel perl5
MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
MASTER_SITE_SUBDIR= Test
PKGNAMEPREFIX= p5-
MAINTAINER= alex@kapranoff.ru
COMMENT= Hide and store warnings while running test scripts
BUILD_DEPENDS= ${SITE_PERL}/Test/Tester.pm:${PORTSDIR}/devel/p5-Test-Tester
RUN_DEPENDS= ${BUILD_DEPENDS}
PERL_CONFIGURE= yes
INSTALL_TARGET= pure_install
MAN3= Test::NoWarnings.3
post-patch:
@${PERL} -i -pe 'm/INSTALLDIRS\s+=>/ and $$_ = ""' \
${WRKSRC}/Makefile.PL
.include <bsd.port.mk>

View file

@ -0,0 +1,2 @@
MD5 (Test-NoWarnings-0.07.tar.gz) = 5489cacf1beefa45d97db1e204d9e842
SIZE (Test-NoWarnings-0.07.tar.gz) = 14464

View file

@ -0,0 +1,8 @@
This modules causes any warnings produced by test scripts to be
captured and stored. It automatically adds an extra test that will run
when your script ends to check that there were no warnings. If there
were any warings, the test will give a "not ok" and diagnostics of
where, when and what the warning was, including a stack trace of what
was going on when the it occurred.
WWW: http://search.cpan.org/dist/Test-NoWarnings/

View file

@ -0,0 +1,7 @@
%%SITE_PERL%%/%%PERL_ARCH%%/auto/Test/NoWarnings/.packlist
%%SITE_PERL%%/Test/NoWarnings.pm
%%SITE_PERL%%/Test/NoWarnings/Warning.pm
@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/Test/NoWarnings
@unexec rmdir %D/%%SITE_PERL%%/%%PERL_ARCH%%/auto/Test 2>/dev/null || true
@dirrm %%SITE_PERL%%/Test/NoWarnings
@unexec rmdir %D/%%SITE_PERL%%/Test 2>/dev/null || true