From 1664dfa7b78f9d8e6cf891399b3b90350cc558b1 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Wed, 24 Jul 2024 22:20:08 +0100 Subject: [PATCH] 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 --- gnu/packages/golang-web.scm | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm index 8fa7b39b4c..237823e26e 100644 --- a/gnu/packages/golang-web.scm +++ b/gnu/packages/golang-web.scm @@ -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")