From owner-svn-ports-all@FreeBSD.ORG Sun Sep 8 15:46:38 2013 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 368AB5A9; Sun, 8 Sep 2013 15:46:38 +0000 (UTC) (envelope-from sunpoet@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 1540223E8; Sun, 8 Sep 2013 15:46:38 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id r88FkbdA069705; Sun, 8 Sep 2013 15:46:37 GMT (envelope-from sunpoet@svn.freebsd.org) Received: (from sunpoet@localhost) by svn.freebsd.org (8.14.7/8.14.5/Submit) id r88FkbNK069696; Sun, 8 Sep 2013 15:46:37 GMT (envelope-from sunpoet@svn.freebsd.org) Message-Id: <201309081546.r88FkbNK069696@svn.freebsd.org> From: Sunpoet Po-Chuan Hsieh Date: Sun, 8 Sep 2013 15:46:37 +0000 (UTC) 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 X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 08 Sep 2013 15:46:38 -0000 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 +# $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 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