diff options
author | abs <abs@pkgsrc.org> | 2009-02-14 00:12:30 +0000 |
---|---|---|
committer | abs <abs@pkgsrc.org> | 2009-02-14 00:12:30 +0000 |
commit | 144d78a82e112caec5fe3a2d7668921e583d89eb (patch) | |
tree | d899ba229986708fe442102fd6be2a890a689259 /devel/p5-Test-Most | |
parent | 3aa5a11a8bd2ad1c29a24a20c2c53bf973c30251 (diff) | |
download | pkgsrc-144d78a82e112caec5fe3a2d7668921e583d89eb.tar.gz |
Added devel/p5-Test-Most version 0.20
This module provides you with the most commonly used testing
functions and gives you a bit more fine-grained control over your
test suite.
use Test::Most tests => 4, 'die';
ok 1, 'Normal calls to ok() should succeed';
is 2, 2, '... as should all passing tests';
eq_or_diff [3], [4], '... but failing tests should die';
ok 4, '... will never get to here';
As you can see, the eq_or_diff test will fail. Because 'die' is in
the import list, the test program will halt at that point.
Diffstat (limited to 'devel/p5-Test-Most')
-rw-r--r-- | devel/p5-Test-Most/DESCR | 13 | ||||
-rw-r--r-- | devel/p5-Test-Most/Makefile | 28 | ||||
-rw-r--r-- | devel/p5-Test-Most/distinfo | 5 |
3 files changed, 46 insertions, 0 deletions
diff --git a/devel/p5-Test-Most/DESCR b/devel/p5-Test-Most/DESCR new file mode 100644 index 00000000000..5e0837b6277 --- /dev/null +++ b/devel/p5-Test-Most/DESCR @@ -0,0 +1,13 @@ +This module provides you with the most commonly used testing +functions and gives you a bit more fine-grained control over your +test suite. + + use Test::Most tests => 4, 'die'; + + ok 1, 'Normal calls to ok() should succeed'; + is 2, 2, '... as should all passing tests'; + eq_or_diff [3], [4], '... but failing tests should die'; + ok 4, '... will never get to here'; + +As you can see, the eq_or_diff test will fail. Because 'die' is in +the import list, the test program will halt at that point. diff --git a/devel/p5-Test-Most/Makefile b/devel/p5-Test-Most/Makefile new file mode 100644 index 00000000000..d4dbf5988bb --- /dev/null +++ b/devel/p5-Test-Most/Makefile @@ -0,0 +1,28 @@ +# $NetBSD: Makefile,v 1.1.1.1 2009/02/14 00:12:30 abs Exp $ +# + +DISTNAME= Test-Most-0.20 +PKGNAME= p5-${DISTNAME} +CATEGORIES= devel perl5 +MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=Test/} + +MAINTAINER= pkgsrc-users@NetBSD.org +HOMEPAGE= http://search.cpan.org/perldoc?Test::Most +COMMENT= Most commonly needed test functions and features + +DEPENDS+= p5-Exception-Class>=1.14:../../devel/p5-Exception-Class +DEPENDS+= p5-Test-Simple>=0.82:../../devel/p5-Test-Simple +DEPENDS+= p5-Test-Exception>0:../../devel/p5-Test-Exception +DEPENDS+= p5-Test-Differences>0:../../devel/p5-Test-Differences +DEPENDS+= p5-Test-Deep>0:../../devel/p5-Test-Deep +DEPENDS+= p5-Test-Harness>3.07:../../devel/p5-Test-Harness +DEPENDS+= p5-Test-Warn>0.10:../../devel/p5-Test-Warn + +PKG_DESTDIR_SUPPORT= user-destdir +PERL5_MODULE_TYPE= Module::Build + +USE_LANGUAGES= # empty +PERL5_PACKLIST= auto/Test/Most/.packlist + +.include "../../lang/perl5/module.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/devel/p5-Test-Most/distinfo b/devel/p5-Test-Most/distinfo new file mode 100644 index 00000000000..c02ee3c89c9 --- /dev/null +++ b/devel/p5-Test-Most/distinfo @@ -0,0 +1,5 @@ +$NetBSD: distinfo,v 1.1.1.1 2009/02/14 00:12:30 abs Exp $ + +SHA1 (Test-Most-0.20.tar.gz) = aaabef341634140124e42607c713857d31953152 +RMD160 (Test-Most-0.20.tar.gz) = 2ab50831653cdf5ad220c07a03d54c0ae29a271b +Size (Test-Most-0.20.tar.gz) = 10045 bytes |