mirror of
https://https.git.savannah.gnu.org/git/guix.git/
synced 2025-07-17 04:20:44 +02:00
gnu: go-github-com-rogpeppe-go-internal: Enable tests.
* gnu/packages/golang-xyz.scm (go-github-com-rogpeppe-go-internal): Enable tests. [arguments]: <#:phases>: Add 'disable-failing-tests phase; use custom 'check phase. [propagated-inputs]: Remove go-github-com-pkg-diff; add go-golang-org-x-mod, go-golang-org-x-sys, and go-golang-org-x-tools. Change-Id: Ia937113bd690cee9d954c0b5b53b6067f8e447ba
This commit is contained in:
parent
b6332821c2
commit
b313bdc7e7
1 changed files with 19 additions and 7 deletions
|
@ -4752,18 +4752,30 @@ not overload the given database.")
|
||||||
(arguments
|
(arguments
|
||||||
(list
|
(list
|
||||||
#:import-path "github.com/rogpeppe/go-internal"
|
#:import-path "github.com/rogpeppe/go-internal"
|
||||||
;; Source-only package
|
|
||||||
#:tests? #f
|
|
||||||
#:phases
|
#:phases
|
||||||
#~(modify-phases %standard-phases
|
#~(modify-phases %standard-phases
|
||||||
(delete 'build))))
|
(add-after 'unpack 'disable-failing-tests
|
||||||
|
(lambda* (#:key tests? import-path #:allow-other-keys)
|
||||||
|
(with-directory-excursion (string-append "src/" import-path)
|
||||||
|
(substitute* (find-files "." "\\_test.go$")
|
||||||
|
(("TestSimple") "OffTestSimple")))))
|
||||||
|
;; XXX: Replace when go-build-system supports nested path.
|
||||||
|
(delete 'build)
|
||||||
|
(replace 'check
|
||||||
|
(lambda* (#:key import-path tests? #:allow-other-keys)
|
||||||
|
(when tests?
|
||||||
|
(with-directory-excursion (string-append "src/" import-path)
|
||||||
|
(invoke "go" "test" "-v" "./..."))))))))
|
||||||
(propagated-inputs
|
(propagated-inputs
|
||||||
(list go-github-com-pkg-diff))
|
(list go-golang-org-x-mod
|
||||||
|
go-golang-org-x-sys
|
||||||
|
go-golang-org-x-tools))
|
||||||
(home-page "https://github.com/rogpeppe/go-internal/")
|
(home-page "https://github.com/rogpeppe/go-internal/")
|
||||||
(synopsis "Internal packages from the Go standard library")
|
(synopsis "Internal packages from the Go standard library")
|
||||||
(description "This repository factors out an opinionated selection of
|
(description
|
||||||
internal packages and functionality from the Go standard library. Currently
|
"This repository factors out an opinionated selection of internal
|
||||||
this consists mostly of packages and testing code from within the Go tool
|
packages and functionality from the Go standard library. Currently this
|
||||||
|
consists mostly of packages and testing code from within the Go tool
|
||||||
implementation.
|
implementation.
|
||||||
|
|
||||||
Included are the following:
|
Included are the following:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue