Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 8 Sep 2013 15:46:37 +0000 (UTC)
From:      Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r326749 - in head/devel: . p5-Test-Warnings
Message-ID:  <201309081546.r88FkbNK069696@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: sunpoet
Date: Sun Sep  8 15:46:36 2013
New Revision: 326749
URL: http://svnweb.freebsd.org/changeset/ports/326749

Log:
  - Add p5-Test-Warnings 0.008
  
  If you've ever tried to use Test::NoWarnings to confirm there are no warnings
  generated by your tests, combined with the convenience of done_testing to not
  have to declare a test count, you'll have discovered that these two features do
  not play well together, as the test count will be calculated before the warnings
  test is run, resulting in a TAP error. (See examples/test_nowarnings.pl in this
  distribution for a demonstration.)
  
  This module is intended to be used as a drop-in replacement for
  Test::NoWarnings: it also adds an extra test, but runs this test before
  done_testing calculates the test count, rather than after. It does this by
  hooking into done_testing as well as via an END block. You can declare a plan,
  or not, and things will still Just Work.
  
  WWW: http://search.cpan.org/dist/Test-Warnings/

Added:
  head/devel/p5-Test-Warnings/
  head/devel/p5-Test-Warnings/Makefile   (contents, props changed)
  head/devel/p5-Test-Warnings/distinfo   (contents, props changed)
  head/devel/p5-Test-Warnings/pkg-descr   (contents, props changed)
  head/devel/p5-Test-Warnings/pkg-plist   (contents, props changed)
Modified:
  head/devel/Makefile

Modified: head/devel/Makefile
==============================================================================
--- head/devel/Makefile	Sun Sep  8 15:43:07 2013	(r326748)
+++ head/devel/Makefile	Sun Sep  8 15:46:36 2013	(r326749)
@@ -2862,6 +2862,7 @@
     SUBDIR += p5-Test-WWW-Mechanize-PSGI
     SUBDIR += p5-Test-WWW-Selenium
     SUBDIR += p5-Test-Warn
+    SUBDIR += p5-Test-Warnings
     SUBDIR += p5-Test-Weaken
     SUBDIR += p5-Test-Without-Module
     SUBDIR += p5-Test-XML

Added: head/devel/p5-Test-Warnings/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/p5-Test-Warnings/Makefile	Sun Sep  8 15:46:36 2013	(r326749)
@@ -0,0 +1,26 @@
+# Created by: Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>
+# $FreeBSD$
+
+PORTNAME=	Test-Warnings
+PORTVERSION=	0.008
+CATEGORIES=	devel perl5
+MASTER_SITES=	CPAN
+PKGNAMEPREFIX=	p5-
+
+MAINTAINER=	sunpoet@FreeBSD.org
+COMMENT=	Test for warnings and the lack of them
+
+LICENSE=	ART10 GPLv1
+LICENSE_COMB=	dual
+
+TEST_DEPENDS=	p5-Capture-Tiny>=0:${PORTSDIR}/devel/p5-Capture-Tiny \
+		p5-Test-CheckDeps>=0.006:${PORTSDIR}/devel/p5-Test-CheckDeps \
+		p5-Test-Deep>=0:${PORTSDIR}/devel/p5-Test-Deep \
+		p5-Test-Tester>=0.108:${PORTSDIR}/devel/p5-Test-Tester
+
+USE_PERL5=	modbuildtiny
+USES=		perl5
+
+MAN3=		Test::Warnings.3
+
+.include <bsd.port.mk>

Added: head/devel/p5-Test-Warnings/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/p5-Test-Warnings/distinfo	Sun Sep  8 15:46:36 2013	(r326749)
@@ -0,0 +1,2 @@
+SHA256 (Test-Warnings-0.008.tar.gz) = 119f2a279fe7d0681dcf4517f1bcb056e4596cfbae7b9ee447118f036cf089e4
+SIZE (Test-Warnings-0.008.tar.gz) = 21853

Added: head/devel/p5-Test-Warnings/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/p5-Test-Warnings/pkg-descr	Sun Sep  8 15:46:36 2013	(r326749)
@@ -0,0 +1,14 @@
+If you've ever tried to use Test::NoWarnings to confirm there are no warnings
+generated by your tests, combined with the convenience of done_testing to not
+have to declare a test count, you'll have discovered that these two features do
+not play well together, as the test count will be calculated before the warnings
+test is run, resulting in a TAP error. (See examples/test_nowarnings.pl in this
+distribution for a demonstration.)
+
+This module is intended to be used as a drop-in replacement for
+Test::NoWarnings: it also adds an extra test, but runs this test before
+done_testing calculates the test count, rather than after. It does this by
+hooking into done_testing as well as via an END block. You can declare a plan,
+or not, and things will still Just Work.
+
+WWW: http://search.cpan.org/dist/Test-Warnings/

Added: head/devel/p5-Test-Warnings/pkg-plist
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/p5-Test-Warnings/pkg-plist	Sun Sep  8 15:46:36 2013	(r326749)
@@ -0,0 +1,5 @@
+%%SITE_PERL%%/Test/Warnings.pm
+%%SITE_PERL%%/%%PERL_ARCH%%/auto/Test/Warnings/.packlist
+@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/Test/Warnings
+@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Test
+@dirrmtry %%SITE_PERL%%/Test



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201309081546.r88FkbNK069696>