summaryrefslogtreecommitdiff
path: root/gnu/packages/shellutils.scm
diff options
context:
space:
mode:
authorSharlatan Hellseher <sharlatanus@gmail.com>2024-08-23 16:25:52 +0100
committerSharlatan Hellseher <sharlatanus@gmail.com>2024-08-23 17:05:18 +0100
commit6d43590d4688ca479948ffd8db19ef8f0ad2db1e (patch)
tree8df1a55b2223a7bc95da7a1452b53a3c3c4cda07 /gnu/packages/shellutils.scm
parent48f5df83df17b4dec1d2273a4411f65996826dc1 (diff)
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
Diffstat (limited to 'gnu/packages/shellutils.scm')
-rw-r--r--gnu/packages/shellutils.scm12
1 files changed, 9 insertions, 3 deletions
diff --git a/gnu/packages/shellutils.scm b/gnu/packages/shellutils.scm
index 077110290fe..ea198308536 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.")
436 (("version = \"\\(devel\\)\"") 436 (("version = \"\\(devel\\)\"")
437 (format #f "version = \"~a\"" fixed-version))) 437 (format #f "version = \"~a\"" fixed-version)))
438 (substitute* "cmd/shfmt/testdata/script/flags.txtar" 438 (substitute* "cmd/shfmt/testdata/script/flags.txtar"
439 (("devel\\|v3") #$version))))))))) 439 (("devel\\|v3") #$version))))))
440 ;; XXX: Replace when go-build-system supports nested path.
441 (replace 'check
442 (lambda* (#:key import-path tests? #:allow-other-keys)
443 (when tests?
444 (with-directory-excursion (string-append "src/" import-path)
445 (invoke "go" "test" "-v" "./..."))))))))
440 (native-inputs 446 (native-inputs
441 (list go-github-com-creack-pty 447 (list go-github-com-creack-pty
442 go-github-com-frankban-quicktest 448 go-github-com-go-quicktest-qt
443 go-github-com-google-go-cmp 449 go-github-com-google-go-cmp
444 go-github-com-google-renameio-v2 450 go-github-com-google-renameio-v2
445 go-github-com-pkg-diff 451 go-github-com-muesli-cancelreader
446 go-github-com-rogpeppe-go-internal 452 go-github-com-rogpeppe-go-internal
447 go-golang-org-x-sync 453 go-golang-org-x-sync
448 go-golang-org-x-sys 454 go-golang-org-x-sys