mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-07 23:46:13 -05:00
gnu: Add Test-Harness.
* gnu/packages/perl.scm (perl-test-harness): New variable.
This commit is contained in:
parent
0bcb85be50
commit
9c7d97c47d
1 changed files with 30 additions and 0 deletions
|
@ -943,6 +943,36 @@ (define-public perl-test-fatal
|
|||
testing exception-throwing code with about the same amount of typing.")
|
||||
(license (package-license perl))))
|
||||
|
||||
(define-public perl-test-harness
|
||||
(package
|
||||
(name "perl-test-harness")
|
||||
(version "3.35")
|
||||
(source
|
||||
(origin
|
||||
(method url-fetch)
|
||||
(uri (string-append "mirror://cpan/authors/id/L/LE/LEONT/"
|
||||
"Test-Harness-" version ".tar.gz"))
|
||||
(sha256
|
||||
(base32
|
||||
"06l29y1bpizb9vd9g49lgi0wzj1xy4rsk42ahdj3fpgqnvb9wp05"))))
|
||||
(build-system perl-build-system)
|
||||
(arguments
|
||||
`(#:phases (alist-cons-before
|
||||
'check 'patch-test
|
||||
(lambda* (#:key inputs #:allow-other-keys)
|
||||
;; This test looks for "#!/usr/bin/perl" in some source.
|
||||
;; Patch what the test looks for.
|
||||
(substitute* "t/source.t"
|
||||
(("#!/usr/bin/perl")
|
||||
(string-append "#!" (assoc-ref inputs "perl")
|
||||
"/bin/perl"))))
|
||||
%standard-phases)))
|
||||
(home-page "http://search.cpan.org/dist/Test-Harness")
|
||||
(synopsis "Run Perl standard test scripts with statistics")
|
||||
(description "Simple test harness which allows tests to be run and results
|
||||
automatically aggregated and output to STDOUT.")
|
||||
(license (package-license perl))))
|
||||
|
||||
(define-public perl-test-nowarnings
|
||||
(package
|
||||
(name "perl-test-nowarnings")
|
||||
|
|
Loading…
Reference in a new issue