diff options
author | mef <mef@pkgsrc.org> | 2016-09-19 09:00:50 +0000 |
---|---|---|
committer | mef <mef@pkgsrc.org> | 2016-09-19 09:00:50 +0000 |
commit | 1e3a8c9fe1682a7738d0082100ba1df7ff6c07c5 (patch) | |
tree | 839f65de2078a233804583e6d949db5893935cb0 /devel/p5-Test-Toolbox | |
parent | 11236928fc8d922b8abc5a591ac8b319fe49f00a (diff) | |
download | pkgsrc-1e3a8c9fe1682a7738d0082100ba1df7ff6c07c5.tar.gz |
Import p5-Test-Toolbox-0.4 as devel/p5-Test-Toolbox.
Test::Toolbox provides (as you might guess) tools for automated
testing. Test::Toolbox is much like some other testing modules, such as
Test::More and Test::Simple. Test::Toolbox provides a different flavor of
tests which may or may not actually be to your preference.
The tools in Test::Toolbox have a standard format. Commands start with (the
command (of course), followed by the test name. Then there is usually the
value being tested, or values being compared, then other options. So, for
example, this command checks compares two values:
rtcomp 'test name', $val, $other_val;
In some cases it's preferable to flip the logic of the test, so that, for
example, two values should not be the same. In that case, you can add the
should option:
rtcomp 'test name', $val, $other_val, should=>0;
All test commands require a test name as the first param.
Diffstat (limited to 'devel/p5-Test-Toolbox')
-rw-r--r-- | devel/p5-Test-Toolbox/DESCR | 19 | ||||
-rw-r--r-- | devel/p5-Test-Toolbox/Makefile | 18 | ||||
-rw-r--r-- | devel/p5-Test-Toolbox/distinfo | 6 |
3 files changed, 43 insertions, 0 deletions
diff --git a/devel/p5-Test-Toolbox/DESCR b/devel/p5-Test-Toolbox/DESCR new file mode 100644 index 00000000000..3c217ce1677 --- /dev/null +++ b/devel/p5-Test-Toolbox/DESCR @@ -0,0 +1,19 @@ +Test::Toolbox provides (as you might guess) tools for automated +testing. Test::Toolbox is much like some other testing modules, such as +Test::More and Test::Simple. Test::Toolbox provides a different flavor of +tests which may or may not actually be to your preference. + +The tools in Test::Toolbox have a standard format. Commands start with (the +command (of course), followed by the test name. Then there is usually the +value being tested, or values being compared, then other options. So, for +example, this command checks compares two values: + + rtcomp 'test name', $val, $other_val; + +In some cases it's preferable to flip the logic of the test, so that, for +example, two values should not be the same. In that case, you can add the +should option: + + rtcomp 'test name', $val, $other_val, should=>0; + +All test commands require a test name as the first param. diff --git a/devel/p5-Test-Toolbox/Makefile b/devel/p5-Test-Toolbox/Makefile new file mode 100644 index 00000000000..d71059bedd0 --- /dev/null +++ b/devel/p5-Test-Toolbox/Makefile @@ -0,0 +1,18 @@ +# $NetBSD: Makefile,v 1.1 2016/09/19 09:00:50 mef Exp $ + +DISTNAME= Test-Toolbox-0.4 +PKGNAME= p5-${DISTNAME} +CATEGORIES= devel perl5 +MASTER_SITES= https://cpan.metacpan.org/authors/id/M/MI/MIKO/ + +MAINTAINER= pkgsrc-users@NetBSD.org +HOMEPAGE= https://cpan.metacpan.org/authors/id/M/MI/MIKO/ +COMMENT= Test::Toolbox - tools for testing +LICENSE= ${PERL5_LICENSE} + +PERL5_MODULE_TYPE= Module::Build +PERL5_PACKLIST= auto/Test/Toolbox/.packlist +USE_LANGUAGES= # none + +.include "../../lang/perl5/module.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/devel/p5-Test-Toolbox/distinfo b/devel/p5-Test-Toolbox/distinfo new file mode 100644 index 00000000000..317053449d0 --- /dev/null +++ b/devel/p5-Test-Toolbox/distinfo @@ -0,0 +1,6 @@ +$NetBSD: distinfo,v 1.1 2016/09/19 09:00:50 mef Exp $ + +SHA1 (Test-Toolbox-0.4.tar.gz) = ae63b1d7cfce105ea6e98f9a9eb601dee7ffd270 +RMD160 (Test-Toolbox-0.4.tar.gz) = 79baa1a10c0e85a0f1224b26069adec60dc6b7e1 +SHA512 (Test-Toolbox-0.4.tar.gz) = 99d711a7cce4ac3a4fd37f4b7fc91cf75c5d4978ff83cd084599ed6c1818d22b30a3210a14b03da4646b53cc939b224937da3bea1c49bb13324c5583ee44bf81 +Size (Test-Toolbox-0.4.tar.gz) = 17713 bytes |