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
This commit is contained in:
Sharlatan Hellseher 2025-02-27 16:38:22 +00:00
parent df084b0aa7
commit df97619e41
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -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