diff options
author | wiz <wiz@pkgsrc.org> | 2005-11-23 22:00:02 +0000 |
---|---|---|
committer | wiz <wiz@pkgsrc.org> | 2005-11-23 22:00:02 +0000 |
commit | ec343ffebc56d7ac1703dcab79319179b4821239 (patch) | |
tree | a72394dbeff6de2f69ce53647d191e2b44d81023 /devel/p5-Test-NoWarnings | |
parent | 6f8a7e9aba1c8fb51b05431e7a24f3b7835eff89 (diff) | |
download | pkgsrc-ec343ffebc56d7ac1703dcab79319179b4821239.tar.gz |
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.
Diffstat (limited to 'devel/p5-Test-NoWarnings')
-rw-r--r-- | devel/p5-Test-NoWarnings/DESCR | 11 | ||||
-rw-r--r-- | devel/p5-Test-NoWarnings/Makefile | 18 | ||||
-rw-r--r-- | devel/p5-Test-NoWarnings/PLIST | 1 | ||||
-rw-r--r-- | devel/p5-Test-NoWarnings/distinfo | 5 |
4 files changed, 35 insertions, 0 deletions
diff --git a/devel/p5-Test-NoWarnings/DESCR b/devel/p5-Test-NoWarnings/DESCR new file mode 100644 index 00000000000..85c2e8f1e82 --- /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 00000000000..db64b4b11de --- /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 00000000000..08f5da361ed --- /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 00000000000..04e450ce70f --- /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 |