diff options
author | Sharlatan Hellseher <sharlatanus@gmail.com> | 2024-08-23 16:25:52 +0100 |
---|---|---|
committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2024-08-23 17:05:18 +0100 |
commit | 6d43590d4688ca479948ffd8db19ef8f0ad2db1e (patch) | |
tree | 8df1a55b2223a7bc95da7a1452b53a3c3c4cda07 | |
parent | 48f5df83df17b4dec1d2273a4411f65996826dc1 (diff) | |
download | guix-6d43590d4688ca479948ffd8db19ef8f0ad2db1e.tar.gz guix-6d43590d4688ca479948ffd8db19ef8f0ad2db1e.zip |
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
-rw-r--r-- | gnu/packages/shellutils.scm | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/gnu/packages/shellutils.scm b/gnu/packages/shellutils.scm index 077110290f..ea19830853 100644 --- a/gnu/packages/shellutils.scm +++ b/gnu/packages/shellutils.scm @@ -436,13 +436,19 @@ all of the regexes given on the command line in order.") (("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 |