gnu: unparam: Enable tests.

* gnu/packages/golang.scm (unparam) [arguments] <tests?>: Enable most of
the tests.
<phases>: Add 'remove-failing-test-scripts.

Change-Id: I1dd75fcd2e991bd84ac042ee1a3519612fc64511
This commit is contained in:
Sharlatan Hellseher 2025-01-08 23:41:33 +00:00
parent 4ba715b1fc
commit 34e98430df
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -3163,12 +3163,18 @@ (define-public unparam
"0qrwszcmb5slbzkq3acw57b896z22zwkv6cf6ldxwlc6p179g009")))) "0qrwszcmb5slbzkq3acw57b896z22zwkv6cf6ldxwlc6p179g009"))))
(build-system go-build-system) (build-system go-build-system)
(arguments (arguments
`(;; FIXME: <...>-go-1.21.5/lib/go/src/runtime/cgo/cgo.go:33:8: could not (list
;; import C (no metadata for C) #:import-path "mvdan.cc/unparam"
;; <...>-go-1.21.5/lib/go/src/net/cgo_linux.go:12:8: could not import C #:phases
;; (no metadata for C) #~(modify-phases %standard-phases
#:tests? #f (add-before 'check 'remove-failing-test-scripts
#:import-path "mvdan.cc/unparam")) (lambda* (#:key import-path #:allow-other-keys)
(with-directory-excursion (string-append "src/" import-path)
(for-each delete-file
(list "testdata/script/usedas.txtar"
"testdata/script/stubs.txtar"
"testdata/script/impl.txtar"
"testdata/script/paramuses.txtar"))))))))
(inputs (list go-github-com-pkg-diff go-golang-org-x-tools (inputs (list go-github-com-pkg-diff go-golang-org-x-tools
go-github-com-rogpeppe-go-internal)) go-github-com-rogpeppe-go-internal))
(home-page "https://mvdan.cc/unparam/") (home-page "https://mvdan.cc/unparam/")