all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [PATCH 0/3] gnu: Add Test::Deep
@ 2014-12-16 11:33 Ricardo Wurmus
  2014-12-16 15:20 ` [PATCH] gnu: Add Test::Simple Ricardo Wurmus
  2014-12-16 23:08 ` [PATCH 0/3] gnu: Add Test::Deep Ludovic Courtès
  0 siblings, 2 replies; 5+ messages in thread
From: Ricardo Wurmus @ 2014-12-16 11:33 UTC (permalink / raw)
  To: guix-devel

[-- Attachment #1: Type: text/plain, Size: 135 bytes --]

This series of patches adds recipes for the perl module Test::Deep and
its dependencies Test::Tester and Test::NoWarnings.

-- rekado


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-gnu-Add-Test-Tester.patch --]
[-- Type: text/x-patch, Size: 1612 bytes --]

From a1804b7b91d41765b2b7b7916df452027d6d0482 Mon Sep 17 00:00:00 2001
From: Ricardo Wurmus <ricardo.wurmus@mdc-berlin.de>
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


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #3: 0002-gnu-Add-Test-NoWarnings.patch --]
[-- Type: text/x-patch, Size: 1893 bytes --]

From ed3b018130e65f344cadfecd23c76c5436ba1d02 Mon Sep 17 00:00:00 2001
From: Ricardo Wurmus <ricardo.wurmus@mdc-berlin.de>
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


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #4: 0003-gnu-Add-Test-Deep.patch --]
[-- Type: text/x-patch, Size: 1882 bytes --]

From c64d3649886c27a42f5e347eb2648b9a2fd56298 Mon Sep 17 00:00:00 2001
From: Ricardo Wurmus <ricardo.wurmus@mdc-berlin.de>
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


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [PATCH] gnu: Add Test::Simple
  2014-12-16 11:33 [PATCH 0/3] gnu: Add Test::Deep Ricardo Wurmus
@ 2014-12-16 15:20 ` Ricardo Wurmus
  2014-12-16 16:29   ` Ricardo Wurmus
  2014-12-16 23:08 ` [PATCH 0/3] gnu: Add Test::Deep Ludovic Courtès
  1 sibling, 1 reply; 5+ messages in thread
From: Ricardo Wurmus @ 2014-12-16 15:20 UTC (permalink / raw)
  To: guix-devel

Attached is a patch that adds a recipe for Test::Simple, testing
utilities for perl.  The previous patches relate to (but do not depend
on) Test::Simple.

The description is little more than the synopsis, because I had to make
it up myself.  Any comments on this patch (and the others in this
series) are very welcome.

-- rekado

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] gnu: Add Test::Simple
  2014-12-16 15:20 ` [PATCH] gnu: Add Test::Simple Ricardo Wurmus
@ 2014-12-16 16:29   ` Ricardo Wurmus
  2014-12-16 23:11     ` Ludovic Courtès
  0 siblings, 1 reply; 5+ messages in thread
From: Ricardo Wurmus @ 2014-12-16 16:29 UTC (permalink / raw)
  To: guix-devel

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: 0001-gnu-Add-Test-Simple.patch --]
[-- Type: text/x-patch, Size: 1526 bytes --]

From 7c5d5847e935976ae522be4618bc985a8205fdf4 Mon Sep 17 00:00:00 2001
From: Ricardo Wurmus <ricardo.wurmus@mdc-berlin.de>
Date: Tue, 16 Dec 2014 16:16:09 +0100
Subject: [PATCH] gnu: Add Test::Simple.

* gnu/packages/perl.scm (perl-test-simple): New variable.
---
 gnu/packages/perl.scm | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

diff --git a/gnu/packages/perl.scm b/gnu/packages/perl.scm
index d15ce1a..03cad3e 100644
--- a/gnu/packages/perl.scm
+++ b/gnu/packages/perl.scm
@@ -346,6 +346,25 @@ bin as is also commonly used) paths of your Perl distribution.")
                               "Test-Script-" version))
     (license (package-license perl))))
 
+(define-public perl-test-simple
+  (package
+    (name "perl-test-simple")
+    (version "1.001009")
+    (source (origin
+              (method url-fetch)
+              (uri (string-append "mirror://cpan/authors/id/E/EX/EXODIST/"
+                                  "Test-Simple-" version ".tar.gz"))
+              (sha256
+               (base32
+                "1klxpy658aj1pmrw63j1hc16gilwh5rzhp9rb2d1iydi3hcm8xb5"))))
+    (build-system perl-build-system)
+    (synopsis "Basic utilities for writing tests")
+    (description
+     "Test::Simple contains basic utilities for writing tests.")
+    (home-page (string-append "http://search.cpan.org/~exodist/"
+                              "Test-Simple-" version))
+    (license (package-license perl))))
+
 (define-public perl-test-tester
   (package
     (name "perl-test-tester")
-- 
1.9.3

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH 0/3] gnu: Add Test::Deep
  2014-12-16 11:33 [PATCH 0/3] gnu: Add Test::Deep Ricardo Wurmus
  2014-12-16 15:20 ` [PATCH] gnu: Add Test::Simple Ricardo Wurmus
@ 2014-12-16 23:08 ` Ludovic Courtès
  1 sibling, 0 replies; 5+ messages in thread
From: Ludovic Courtès @ 2014-12-16 23:08 UTC (permalink / raw)
  To: Ricardo Wurmus; +Cc: guix-devel

Ricardo Wurmus <ricardo.wurmus@mdc-berlin.de> skribis:

> This series of patches adds recipes for the perl module Test::Deep and
> its dependencies Test::Tester and Test::NoWarnings.

Applied all three patches, thanks.

Ludo’.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] gnu: Add Test::Simple
  2014-12-16 16:29   ` Ricardo Wurmus
@ 2014-12-16 23:11     ` Ludovic Courtès
  0 siblings, 0 replies; 5+ messages in thread
From: Ludovic Courtès @ 2014-12-16 23:11 UTC (permalink / raw)
  To: Ricardo Wurmus; +Cc: guix-devel

Ricardo Wurmus <ricardo.wurmus@mdc-berlin.de> skribis:

> From 7c5d5847e935976ae522be4618bc985a8205fdf4 Mon Sep 17 00:00:00 2001
> From: Ricardo Wurmus <ricardo.wurmus@mdc-berlin.de>
> Date: Tue, 16 Dec 2014 16:16:09 +0100
> Subject: [PATCH] gnu: Add Test::Simple.
>
> * gnu/packages/perl.scm (perl-test-simple): New variable.

Applied.  The description is short, but that’s OKish for a small and
“obvious” package like this.

Thanks,
Ludo’.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-12-16 23:11 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-12-16 11:33 [PATCH 0/3] gnu: Add Test::Deep Ricardo Wurmus
2014-12-16 15:20 ` [PATCH] gnu: Add Test::Simple Ricardo Wurmus
2014-12-16 16:29   ` Ricardo Wurmus
2014-12-16 23:11     ` Ludovic Courtès
2014-12-16 23:08 ` [PATCH 0/3] gnu: Add Test::Deep Ludovic Courtès

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.