From ec69205bc1382293ecb74e2d3efed08701dac82f Mon Sep 17 00:00:00 2001 From: wiz Date: Wed, 23 Nov 2005 22:00:02 +0000 Subject: [PATCH] Initial import of p5-Test-NoWarnings: In general, your tests shouldn't produce warnings. This modules causes any warnings 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 warnings, 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 it occurred. If some of your tests are supposed to produce warnings then you should be capturing and checking them with Test::Warn, that way Test::NoWarnings will not see them and so not complain. --- devel/p5-Test-NoWarnings/DESCR | 11 +++++++++++ devel/p5-Test-NoWarnings/Makefile | 18 ++++++++++++++++++ devel/p5-Test-NoWarnings/PLIST | 1 + devel/p5-Test-NoWarnings/distinfo | 5 +++++ 4 files changed, 35 insertions(+) create mode 100644 devel/p5-Test-NoWarnings/DESCR create mode 100644 devel/p5-Test-NoWarnings/Makefile create mode 100644 devel/p5-Test-NoWarnings/PLIST create mode 100644 devel/p5-Test-NoWarnings/distinfo diff --git a/devel/p5-Test-NoWarnings/DESCR b/devel/p5-Test-NoWarnings/DESCR new file mode 100644 index 000000000000..85c2e8f1e823 --- /dev/null +++ b/devel/p5-Test-NoWarnings/DESCR @@ -0,0 +1,11 @@ +In general, your tests shouldn't produce warnings. This modules +causes any warnings 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 warnings, 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 it +occurred. + +If some of your tests are supposed to produce warnings then you +should be capturing and checking them with Test::Warn, that way +Test::NoWarnings will not see them and so not complain. diff --git a/devel/p5-Test-NoWarnings/Makefile b/devel/p5-Test-NoWarnings/Makefile new file mode 100644 index 000000000000..db64b4b11def --- /dev/null +++ b/devel/p5-Test-NoWarnings/Makefile @@ -0,0 +1,18 @@ +# $NetBSD: Makefile,v 1.1.1.1 2005/11/23 22:00:02 wiz Exp $ + +DISTNAME= Test-NoWarnings-0.082 +PKGNAME= p5-${DISTNAME} +CATEGORIES= devel perl5 +MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=Test/} + +MAINTAINER= tech-pkg@NetBSD.org +HOMEPAGE= http://search.cpan.org/dist/Test-NoWarnings/ +COMMENT= Perl5 module to make sure you didn't emit any warnings while testing + +DEPENDS+= p5-Test-Tester>=0.103:../../devel/p5-Test-Tester + +USE_LANGUAGES= # empty +PERL5_PACKLIST= auto/Test/NoWarnings/.packlist + +.include "../../lang/perl5/module.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/devel/p5-Test-NoWarnings/PLIST b/devel/p5-Test-NoWarnings/PLIST new file mode 100644 index 000000000000..08f5da361ed2 --- /dev/null +++ b/devel/p5-Test-NoWarnings/PLIST @@ -0,0 +1 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2005/11/23 22:00:02 wiz Exp $ diff --git a/devel/p5-Test-NoWarnings/distinfo b/devel/p5-Test-NoWarnings/distinfo new file mode 100644 index 000000000000..04e450ce70f0 --- /dev/null +++ b/devel/p5-Test-NoWarnings/distinfo @@ -0,0 +1,5 @@ +$NetBSD: distinfo,v 1.1.1.1 2005/11/23 22:00:02 wiz Exp $ + +SHA1 (Test-NoWarnings-0.082.tar.gz) = 41571c0e1c2e86a2eb63a6f9cfb769e6ff4630d2 +RMD160 (Test-NoWarnings-0.082.tar.gz) = 0cd18b19c8a415613648fb15202ebc73c672a785 +Size (Test-NoWarnings-0.082.tar.gz) = 15036 bytes