This series of patches adds recipes for the perl module Test::Deep and its dependencies Test::Tester and Test::NoWarnings.
-- rekado
>From a1804b7b91d41765b2b7b7916df452027d6d0482 Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus <[email protected]> Date: Tue, 16 Dec 2014 12:12:10 +0100 Subject: [PATCH 1/3] gnu: Add Test::Tester. * gnu/packages/perl.scm (perl-test-tester): New variable. --- gnu/packages/perl.scm | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/gnu/packages/perl.scm b/gnu/packages/perl.scm index a724a1b..a1cf2c1 100644 --- a/gnu/packages/perl.scm +++ b/gnu/packages/perl.scm @@ -277,6 +277,27 @@ bin as is also commonly used) paths of your Perl distribution.") "Test-Script-" version)) (license (package-license perl)))) +(define-public perl-test-tester + (package + (name "perl-test-tester") + (version "0.109") + (source (origin + (method url-fetch) + (uri (string-append "mirror://cpan/authors/id/F/FD/FDALY/" + "Test-Tester-" version ".tar.gz")) + (sha256 + (base32 + "0m9n28z09kq455r5nydj1bnr85lvmbfpcbjdkjfbpmfb5xgciiyk")))) + (build-system perl-build-system) + (synopsis "Simplify running Test::Builder tests") + (description + "Test::Tester allows testing of test modules based on Test::Builder with +a minimum of effort.") + (home-page (string-append "http://search.cpan.org/~fdaly/" + "Test-Tester-" version)) + ;; "Under the same license as Perl itself" + (license (package-license perl)))) + (define-public perl-file-which (package (name "perl-file-which") -- 1.9.3
>From ed3b018130e65f344cadfecd23c76c5436ba1d02 Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus <[email protected]> Date: Tue, 16 Dec 2014 12:15:23 +0100 Subject: [PATCH 2/3] gnu: Add Test::NoWarnings. * gnu/packages/perl.scm (perl-test-nowarnings): New variable. --- gnu/packages/perl.scm | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/gnu/packages/perl.scm b/gnu/packages/perl.scm index a1cf2c1..c8011f5 100644 --- a/gnu/packages/perl.scm +++ b/gnu/packages/perl.scm @@ -253,6 +253,30 @@ Perlish API and none of the bloat and rarely used features of IPC::Run.") ;; licenses, any version." (license (list bsd-3 gpl3+)))) +(define-public perl-test-nowarnings + (package + (name "perl-test-nowarnings") + (version "1.04") + (source (origin + (method url-fetch) + (uri (string-append "mirror://cpan/authors/id/A/AD/ADAMK/" + "Test-NoWarnings-" version ".tar.gz")) + (sha256 + (base32 + "0v385ch0hzz9naqwdw2az3zdqi15gka76pmiwlgsy6diiijmg2k3")))) + (build-system perl-build-system) + (inputs `(("perl-test-tester" ,perl-test-tester))) + (synopsis "Ensure no warnings are produced while testing") + (description + "This modules causes any warnings during testing to be captured and +stored. It automatically adds an extra test that will run when your script +ends to check that there were no warnings. If there were any warings, the +test will fail and output diagnostics of where, when and what the warning was, +including a stack trace of what was going on when it occurred.") + (home-page (string-append "http://search.cpan.org/~adamk/" + "Test-NoWarnings-" version)) + (license lgpl2.1))) + (define-public perl-test-script (package (name "perl-test-script") -- 1.9.3
>From c64d3649886c27a42f5e347eb2648b9a2fd56298 Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus <[email protected]> Date: Tue, 16 Dec 2014 12:19:15 +0100 Subject: [PATCH 3/3] gnu: Add Test::Deep. * gnu/packages/perl.scm (perl-test-deep): New variable. --- gnu/packages/perl.scm | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/gnu/packages/perl.scm b/gnu/packages/perl.scm index c8011f5..4135533 100644 --- a/gnu/packages/perl.scm +++ b/gnu/packages/perl.scm @@ -253,6 +253,30 @@ Perlish API and none of the bloat and rarely used features of IPC::Run.") ;; licenses, any version." (license (list bsd-3 gpl3+)))) +(define-public perl-test-deep + (package + (name "perl-test-deep") + (version "0.114") + (source (origin + (method url-fetch) + (uri (string-append "mirror://cpan/authors/id/R/RJ/RJBS/" + "Test-Deep-" version ".tar.gz")) + (sha256 + (base32 + "09yr47vw7vj27sdik312x08938higcij8ybyq8k67mlccx8cpqf0")))) + (build-system perl-build-system) + (inputs `(("perl-test-tester" ,perl-test-tester) + ("perl-test-nowarnings" ,perl-test-nowarnings))) + (synopsis "Flexible deep comparison for the Test::Builder framework") + (description + "Test::Deep compares two structures by going through each level, ensuring +that the values match, that arrays and hashes have the same elements and that +references are blessed into the correct class. It also handles circular data +structures without getting caught in an infinite loop.") + (home-page (string-append "http://search.cpan.org/~rjbs/" + "Test-Deep-" version)) + (license gpl1+))) ; or "Artistic License" + (define-public perl-test-nowarnings (package (name "perl-test-nowarnings") -- 1.9.3
