diff options
author | abs <abs@pkgsrc.org> | 2008-06-23 04:04:21 +0000 |
---|---|---|
committer | abs <abs@pkgsrc.org> | 2008-06-23 04:04:21 +0000 |
commit | 36af742d13ab3758b24334304a8157de3e9d7c43 (patch) | |
tree | d7ed46a2dd9f76e8d91edb09d0da67ead8bfe906 /devel | |
parent | 1c256ddbf4e28112881eaeebf88d1837870261c8 (diff) | |
download | pkgsrc-36af742d13ab3758b24334304a8157de3e9d7c43.tar.gz |
Import p5-Test-Differences-0.47
When the code you're testing returns multiple lines, records or
data structures and they're just plain wrong, an equivalent to the
Unix diff utility may be just what's needed.
eq_or_diff_...() compares two strings or (limited) data structures
and either emits an ok indication or a side-by-side diff.
Test::Differences is designed to be used with Test.pm and with
Test::Simple, Test::More, and other Test::Builder based testing
modules. As the SYNOPSIS shows, another testing module must be used
as the basis for your test suite.
These functions assume that you are presenting it with "flat"
records, looking like:
- scalars composed of record-per-line
- arrays of scalars,
- arrays of arrays of scalars,
- arrays of hashes containing only scalars
Diffstat (limited to 'devel')
-rw-r--r-- | devel/p5-Test-Differences/DESCR | 18 | ||||
-rw-r--r-- | devel/p5-Test-Differences/Makefile | 20 | ||||
-rw-r--r-- | devel/p5-Test-Differences/distinfo | 5 |
3 files changed, 43 insertions, 0 deletions
diff --git a/devel/p5-Test-Differences/DESCR b/devel/p5-Test-Differences/DESCR new file mode 100644 index 00000000000..94c2e1aac1b --- /dev/null +++ b/devel/p5-Test-Differences/DESCR @@ -0,0 +1,18 @@ +When the code you're testing returns multiple lines, records or +data structures and they're just plain wrong, an equivalent to the +Unix diff utility may be just what's needed. + +eq_or_diff_...() compares two strings or (limited) data structures +and either emits an ok indication or a side-by-side diff. +Test::Differences is designed to be used with Test.pm and with +Test::Simple, Test::More, and other Test::Builder based testing +modules. As the SYNOPSIS shows, another testing module must be used +as the basis for your test suite. + +These functions assume that you are presenting it with "flat" +records, looking like: + + - scalars composed of record-per-line + - arrays of scalars, + - arrays of arrays of scalars, + - arrays of hashes containing only scalars diff --git a/devel/p5-Test-Differences/Makefile b/devel/p5-Test-Differences/Makefile new file mode 100644 index 00000000000..697c781b1bf --- /dev/null +++ b/devel/p5-Test-Differences/Makefile @@ -0,0 +1,20 @@ +# $NetBSD: Makefile,v 1.1.1.1 2008/06/23 04:04:21 abs Exp $ + +DISTNAME= Test-Differences-0.47 +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::Differences +COMMENT= Test strings and data structures and show differences if not ok + +DEPENDS+= p5-Text-Diff>=0.34:../../textproc/p5-Text-Diff + +USE_LANGUAGES= # empty +PERL5_PACKLIST= auto/Test/Differences/.packlist + +PKG_DESTDIR_SUPPORT= user-destdir + +.include "../../lang/perl5/module.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/devel/p5-Test-Differences/distinfo b/devel/p5-Test-Differences/distinfo new file mode 100644 index 00000000000..0eaaf189e6f --- /dev/null +++ b/devel/p5-Test-Differences/distinfo @@ -0,0 +1,5 @@ +$NetBSD: distinfo,v 1.1.1.1 2008/06/23 04:04:21 abs Exp $ + +SHA1 (Test-Differences-0.47.tar.gz) = fd8dc23e5efdf4a2a043b911953fd06697d33e1a +RMD160 (Test-Differences-0.47.tar.gz) = c53566d36b2407a31cf91a61dad52d96dc3deaa9 +Size (Test-Differences-0.47.tar.gz) = 8322 bytes |