gnu: go-gotest-tools-internal-source: Skip tests with gccgo.

* gnu/packages/golang.scm (go-gotest-tools-internal-source)[arguments]:
When building with gccgo skip the test suite.

Change-Id: Ibe3569d9449321dd13ac7691273644d83f8fb38b
This commit is contained in:
Efraim Flashner 2023-11-29 22:02:21 +02:00
parent 7696c8819f
commit bdbb9dc27a
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -8568,6 +8568,17 @@ (define-public go-gotest-tools-internal-difflib
(define-public go-gotest-tools-internal-source (define-public go-gotest-tools-internal-source
(package (inherit (go-gotest-tools-package "internal/source")) (package (inherit (go-gotest-tools-package "internal/source"))
(arguments
(substitute-keyword-arguments
(package-arguments (go-gotest-tools-package "internal/source"))
((#:phases phases #~%standard-phases)
#~(modify-phases #$phases
(replace 'check
(lambda* (#:key inputs #:allow-other-keys #:rest args)
(unless
;; failed to parse source file: : open : no such file or directory
(false-if-exception (search-input-file inputs "/bin/gccgo"))
(apply (assoc-ref %standard-phases 'check) args))))))))
(native-inputs (native-inputs
(list go-github-com-pkg-errors go-github-com-google-go-cmp-cmp)) (list go-github-com-pkg-errors go-github-com-google-go-cmp-cmp))
(synopsis "Source code AST formatters for gotest-tools") (synopsis "Source code AST formatters for gotest-tools")