gnu: go-github.com-smartystreets-assertions: Skip tests with gccgo.

* gnu/packages/check.scm (go-github.com-smartystreets-assertions): Don't
run the test suite when building with gccgo.
This commit is contained in:
Efraim Flashner 2022-08-24 21:50:04 +03:00
parent 4892c1af84
commit e77383e16f
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -676,7 +676,16 @@ (define-public go-github.com-smartystreets-assertions
(base32 "0flf3fb6fsw3bk1viva0fzrzw87djaj1mqvrx2gzg1ssn7xzfrzr"))))
(build-system go-build-system)
(arguments
'(#:import-path "github.com/smartystreets/assertions"))
(list
#:import-path "github.com/smartystreets/assertions"
#: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)))))))
(native-inputs
(list go-github.com-smartystreets-gunit))
(synopsis "Assertions for testing with Go")