gnu: go-golang-org-x-sys: Enable tests.
* gnu/packages/golang-build.scm (go-golang-org-x-sys) [arguments]: <#:tests>: Enable them. <#:phases>: Add custom 'check phase. Change-Id: Ie58ea6f0aa677742307d18cfaafcf6ec381c85c9master
parent
5a2a870a58
commit
bae99a0c44
|
@ -325,12 +325,16 @@ cancelation for groups of goroutines working on subtasks of a common task
|
||||||
(arguments
|
(arguments
|
||||||
(list
|
(list
|
||||||
#:import-path "golang.org/x/sys"
|
#:import-path "golang.org/x/sys"
|
||||||
;; Source-only package
|
|
||||||
#:tests? #f
|
|
||||||
#:phases
|
#:phases
|
||||||
#~(modify-phases %standard-phases
|
#~(modify-phases %standard-phases
|
||||||
;; Source-only package
|
;; XXX: Workaround for go-build-system's lack of Go modules
|
||||||
(delete 'build))))
|
;; support.
|
||||||
|
(delete 'build)
|
||||||
|
(replace 'check
|
||||||
|
(lambda* (#:key tests? import-path #:allow-other-keys)
|
||||||
|
(when tests?
|
||||||
|
(with-directory-excursion (string-append "src/" import-path)
|
||||||
|
(invoke "go" "test" "-v" "./..."))))))))
|
||||||
(home-page "https://go.googlesource.com/sys")
|
(home-page "https://go.googlesource.com/sys")
|
||||||
(synopsis "Go support for low-level system interaction")
|
(synopsis "Go support for low-level system interaction")
|
||||||
(description "This package provides supplemental libraries offering Go
|
(description "This package provides supplemental libraries offering Go
|
||||||
|
|
Reference in New Issue