pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/devel/p5-Test-NoWarnings Initial import of p5-Test-NoW...
details: https://anonhg.NetBSD.org/pkgsrc/rev/3ab2e57c3d7e
branches: trunk
changeset: 503581:3ab2e57c3d7e
user: wiz <wiz%pkgsrc.org@localhost>
date: Wed Nov 23 22:00:02 2005 +0000
description:
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:
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(+), 0 deletions(-)
diffs (51 lines):
diff -r f195f08d28e0 -r 3ab2e57c3d7e devel/p5-Test-NoWarnings/DESCR
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/p5-Test-NoWarnings/DESCR Wed Nov 23 22:00:02 2005 +0000
@@ -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 -r f195f08d28e0 -r 3ab2e57c3d7e devel/p5-Test-NoWarnings/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/p5-Test-NoWarnings/Makefile Wed Nov 23 22:00:02 2005 +0000
@@ -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@localhost
+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 -r f195f08d28e0 -r 3ab2e57c3d7e devel/p5-Test-NoWarnings/PLIST
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/p5-Test-NoWarnings/PLIST Wed Nov 23 22:00:02 2005 +0000
@@ -0,0 +1,1 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2005/11/23 22:00:02 wiz Exp $
diff -r f195f08d28e0 -r 3ab2e57c3d7e devel/p5-Test-NoWarnings/distinfo
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/p5-Test-NoWarnings/distinfo Wed Nov 23 22:00:02 2005 +0000
@@ -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
Home |
Main Index |
Thread Index |
Old Index