mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2025-01-19 14:07:01 +01:00
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:
parent
4ba715b1fc
commit
34e98430df
1 changed files with 12 additions and 6 deletions
|
@ -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/")
|
||||||
|
|
Loading…
Reference in a new issue