mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-25 22:08:16 -05:00
gnu: shfmt: Activate tests.
* gnu/packages/shellutils.scm (shfmt): Activate tests. [native-inputs]: Remove go-github-com-frankban-quicktest and go-github-com-pkg-diff; add go-github-com-go-quicktest-qt and go-github-com-muesli-cancelreader. Change-Id: Ib11765afb102d1bbb947e41988c9ac6403c694df
This commit is contained in:
parent
48f5df83df
commit
6d43590d46
1 changed files with 9 additions and 3 deletions
|
@ -436,13 +436,19 @@ (define-public shfmt
|
|||
(("version = \"\\(devel\\)\"")
|
||||
(format #f "version = \"~a\"" fixed-version)))
|
||||
(substitute* "cmd/shfmt/testdata/script/flags.txtar"
|
||||
(("devel\\|v3") #$version)))))))))
|
||||
(("devel\\|v3") #$version))))))
|
||||
;; XXX: Replace when go-build-system supports nested path.
|
||||
(replace 'check
|
||||
(lambda* (#:key import-path tests? #:allow-other-keys)
|
||||
(when tests?
|
||||
(with-directory-excursion (string-append "src/" import-path)
|
||||
(invoke "go" "test" "-v" "./..."))))))))
|
||||
(native-inputs
|
||||
(list go-github-com-creack-pty
|
||||
go-github-com-frankban-quicktest
|
||||
go-github-com-go-quicktest-qt
|
||||
go-github-com-google-go-cmp
|
||||
go-github-com-google-renameio-v2
|
||||
go-github-com-pkg-diff
|
||||
go-github-com-muesli-cancelreader
|
||||
go-github-com-rogpeppe-go-internal
|
||||
go-golang-org-x-sync
|
||||
go-golang-org-x-sys
|
||||
|
|
Loading…
Reference in a new issue