sharlatan pushed a commit to branch go-team
in repository guix.
commit f207467100d293ca7d5d43336824f36be4af8f9a
Author: Sharlatan Hellseher <[email protected]>
AuthorDate: Thu Feb 27 16:38:22 2025 +0000
gnu: go-github-com-pion-turn: Enable tests.
* gnu/packages/golang-web.scm (go-github-com-pion-turn) [arguments]
<tests?>: Enable them.
<test-flags>: Skip 2 tests requiring networking setup.
<phases>: Add 'remove-examples.
Change-Id: I89b4ed95a41862ce0acb99bb710f2c95e1d0462e
---
gnu/packages/golang-web.scm | 16 ++++++++++++++--
1 file changed, 14 insertions(+), 2 deletions(-)
diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm
index 312c2ed25c..ef0c05f4d8 100644
--- a/gnu/packages/golang-web.scm
+++ b/gnu/packages/golang-web.scm
@@ -7299,8 +7299,20 @@ throughout the @url{https://github.com/pion, Pion}
modules.")
(build-system go-build-system)
(arguments
(list
- #:tests? #f ;Tests require network access.
- #:import-path "github.com/pion/turn"))
+ #:import-path "github.com/pion/turn"
+ #:test-flags
+ #~(list "-skip"
+ (string-join
+ ;; Tests requiring networking setup.
+ (list "TestClientWithSTUN/SendBindingRequest"
+ "TestClientWithSTUN/SendBindingRequestTo_Parallel")
+ "|"))
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'remove-examples
+ (lambda* (#:key tests? import-path #:allow-other-keys)
+ (with-directory-excursion (string-append "src/" import-path)
+ (delete-file-recursively "examples")))))))
(native-inputs
(list go-github-com-stretchr-testify))
(propagated-inputs