diff options
author | Sharlatan Hellseher <sharlatanus@gmail.com> | 2024-12-03 00:37:46 +0000 |
---|---|---|
committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-01-21 23:41:52 +0000 |
commit | 1e4a22c4d7a03ec8614b02f0878bc38b6ba54580 (patch) | |
tree | d658bb509cffd17457cd8786a35a283babc9849c /gnu/packages/golang-check.scm | |
parent | f33d79402086e940b2fb7d8a2b4da4cb3981719e (diff) |
build-system/go: Add test-subdirs option key.
Golang projects may contain subdirectories with test files, which can't
be reached by providing just IMPORT-PATH to the test runner. This
change implements a TEST-SUBDIRS key parameter which is by default set
to "import-path/..." to run all available tests in the project, and may
be limited to particular subdirs list.
* guix/build-system/go.scm (go-build, go-cross-build): Add "test-subdirs"
key parameter.
* guix/build/go-build-system.scm (check): Add "test-subdirs" key
parameter and adjust test invokation accordingly.
Change-Id: Ibc107deea060f0d71e6f4e1e37c81d3b7c9992f5
Diffstat (limited to 'gnu/packages/golang-check.scm')
0 files changed, 0 insertions, 0 deletions