svn commit: r417533 - in head/devel: . p5-Test-Needs
Sunpoet Po-Chuan Hsieh
sunpoet at FreeBSD.org
Sun Jun 26 17:12:53 UTC 2016
Author: sunpoet
Date: Sun Jun 26 17:12:51 2016
New Revision: 417533
URL: https://svnweb.freebsd.org/changeset/ports/417533
Log:
- Add p5-Test-Needs 0.002002
Skip test scripts if modules are not available. The requested modules will be
loaded, and optionally have their versions checked. If the module is missing,
the test script will be skipped. Modules that are found but fail to compile will
exit with an error rather than skip.
If used in a subtest, the remainder of the subtest will be skipped.
Skipping will work even if some tests have already been run, or if a plan has
been declared.
Versions are checked via a $module->VERSION($wanted_version) call. Versions must
be provided in a format that will be accepted. No extra processing is done on
them.
If perl is used as a module, the version is checked against the running perl
version ($]). The version can be specified as a number, dotted-decimal string,
v-string, or version object.
If the RELEASE_TESTING environment variable is set, the tests will fail rather
than skip. Subtests will be aborted, but the test script will continue running
after that point.
WWW: http://search.cpan.org/dist/Test-Needs/
Added:
head/devel/p5-Test-Needs/
head/devel/p5-Test-Needs/Makefile (contents, props changed)
head/devel/p5-Test-Needs/distinfo (contents, props changed)
head/devel/p5-Test-Needs/pkg-descr (contents, props changed)
head/devel/p5-Test-Needs/pkg-plist (contents, props changed)
Modified:
head/devel/Makefile
Modified: head/devel/Makefile
==============================================================================
--- head/devel/Makefile Sun Jun 26 16:23:37 2016 (r417532)
+++ head/devel/Makefile Sun Jun 26 17:12:51 2016 (r417533)
@@ -3270,6 +3270,7 @@
SUBDIR += p5-Test-More-UTF8
SUBDIR += p5-Test-Most
SUBDIR += p5-Test-Name-FromLine
+ SUBDIR += p5-Test-Needs
SUBDIR += p5-Test-Net-LDAP
SUBDIR += p5-Test-Net-RabbitMQ
SUBDIR += p5-Test-NoTabs
Added: head/devel/p5-Test-Needs/Makefile
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/p5-Test-Needs/Makefile Sun Jun 26 17:12:51 2016 (r417533)
@@ -0,0 +1,20 @@
+# Created by: Sunpoet Po-Chuan Hsieh <sunpoet at FreeBSD.org>
+# $FreeBSD$
+
+PORTNAME= Test-Needs
+PORTVERSION= 0.002002
+CATEGORIES= devel perl5
+MASTER_SITES= CPAN
+PKGNAMEPREFIX= p5-
+
+MAINTAINER= sunpoet at FreeBSD.org
+COMMENT= Skip tests when modules not available
+
+LICENSE= ART10 GPLv1
+LICENSE_COMB= dual
+
+NO_ARCH= yes
+USES= perl5
+USE_PERL5= configure
+
+.include <bsd.port.mk>
Added: head/devel/p5-Test-Needs/distinfo
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/p5-Test-Needs/distinfo Sun Jun 26 17:12:51 2016 (r417533)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1466899878
+SHA256 (Test-Needs-0.002002.tar.gz) = 97e9827e1b14a61151509a229b153010811831437fa24db49ea76f73bed05e05
+SIZE (Test-Needs-0.002002.tar.gz) = 8106
Added: head/devel/p5-Test-Needs/pkg-descr
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/p5-Test-Needs/pkg-descr Sun Jun 26 17:12:51 2016 (r417533)
@@ -0,0 +1,23 @@
+Skip test scripts if modules are not available. The requested modules will be
+loaded, and optionally have their versions checked. If the module is missing,
+the test script will be skipped. Modules that are found but fail to compile will
+exit with an error rather than skip.
+
+If used in a subtest, the remainder of the subtest will be skipped.
+
+Skipping will work even if some tests have already been run, or if a plan has
+been declared.
+
+Versions are checked via a $module->VERSION($wanted_version) call. Versions must
+be provided in a format that will be accepted. No extra processing is done on
+them.
+
+If perl is used as a module, the version is checked against the running perl
+version ($]). The version can be specified as a number, dotted-decimal string,
+v-string, or version object.
+
+If the RELEASE_TESTING environment variable is set, the tests will fail rather
+than skip. Subtests will be aborted, but the test script will continue running
+after that point.
+
+WWW: http://search.cpan.org/dist/Test-Needs/
Added: head/devel/p5-Test-Needs/pkg-plist
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/p5-Test-Needs/pkg-plist Sun Jun 26 17:12:51 2016 (r417533)
@@ -0,0 +1,2 @@
+%%SITE_PERL%%/Test/Needs.pm
+%%PERL5_MAN3%%/Test::Needs.3.gz
More information about the svn-ports-head
mailing list