mirror of
https://https.git.savannah.gnu.org/git/guix.git/
synced 2025-07-14 19:10:49 +02:00
gnu: go-github-com-google-go-cmp-cmp: Enable all tests.
* gnu/packages/golang.scm (go-github-com-google-go-cmp-cmp) [arguments]: <#:phases>: Adjust custom 'check phase to run all available tests inside each submodule and respect "tests?' parameter. Change-Id: I85eacbb4c3221d34a2e7cf6a9f6cfde363ded71c
This commit is contained in:
parent
770a668505
commit
bdff9d2642
1 changed files with 11 additions and 5 deletions
|
@ -5950,11 +5950,17 @@ filters for Go.")
|
|||
#:phases
|
||||
#~(modify-phases %standard-phases
|
||||
(replace 'check
|
||||
(lambda* (#:key inputs #:allow-other-keys #:rest args)
|
||||
(unless
|
||||
;; The tests fail when run with gccgo.
|
||||
(false-if-exception (search-input-file inputs "/bin/gccgo"))
|
||||
(apply (assoc-ref %standard-phases 'check) args)))))))
|
||||
(lambda* (#:key tests? import-path inputs #:allow-other-keys)
|
||||
(when tests?
|
||||
;; The tests fail when run with gccgo.
|
||||
(let ((gccgo? (false-if-exception
|
||||
(search-input-file inputs "/bin/gccgo"))))
|
||||
(if gccgo?
|
||||
(format #t "skipping tests with gccgo compiler~%")
|
||||
;; XXX: Workaround for go-build-system's lack of Go
|
||||
;; modules support.
|
||||
(with-directory-excursion (string-append "src/" import-path)
|
||||
(invoke "go" "test" "-v" "./..."))))))))))
|
||||
(synopsis "Determine equality of values in Go")
|
||||
(home-page "https://github.com/google/go-cmp")
|
||||
(description
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue