gnu: go-github-com-aws-aws-sdk-go: Enable all tests.

* gnu/packages/golang-web.scm (go-github-com-aws-aws-sdk-go): Enable all tests.
[arguments]: <#:phases>: Add 'disable-failing-tests and use custom
'check phases.

Change-Id: I732a4f0c1da8e431dd751aaa4a451f0b1a6656cb
This commit is contained in:
Sharlatan Hellseher 2024-07-24 22:20:08 +01:00
parent 265345083d
commit 1664dfa7b7
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -243,7 +243,22 @@ (define-public go-github-com-aws-aws-sdk-go
(build-system go-build-system)
(arguments
(list
#:import-path "github.com/aws/aws-sdk-go"))
#:import-path "github.com/aws/aws-sdk-go"
#:phases
#~(modify-phases %standard-phases
(add-after 'unpack 'disable-failing-tests
(lambda* (#:key tests? import-path #:allow-other-keys)
(with-directory-excursion (string-append "src/" import-path)
(substitute* (find-files "." "\\_test.go$")
(("TestProcessProviderTimeout")
"OffTestProcessProviderTimeout")))))
;; XXX: Workaround for go-build-system's lack of Go modules
;; support.
(replace 'check
(lambda* (#:key tests? import-path #:allow-other-keys)
(when tests?
(with-directory-excursion (string-append "src/" import-path)
(invoke "go" "test" "-v" "./..."))))))))
(propagated-inputs
(list go-github-com-jmespath-go-jmespath))
(home-page "https://github.com/aws/aws-sdk-go")