gnu: go-gopkg-in-check-v1: Skip tests with gccgo.

* gnu/packages/golang.scm (go-gopkg-in-check-v1)[arguments]: Don't run
the test suite when building with gccgo.
This commit is contained in:
Efraim Flashner 2022-08-24 22:00:20 +03:00
parent e77383e16f
commit 22487dfc22
No known key found for this signature in database
GPG Key ID: 41AAE7DCCA3D8351

View File

@ -4051,7 +4051,16 @@ which satisfies the cron expression.")
"1jwxndf8rsyx0fgrp47d99rp55yzssmryb92jfj3yf7zd8rjjljn"))))
(build-system go-build-system)
(arguments
'(#:import-path "gopkg.in/check.v1"))
(list
#:import-path "gopkg.in/check.v1"
#: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)))))))
(propagated-inputs
(list go-github-com-kr-pretty))
(home-page "https://gopkg.in/check.v1")