mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
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:
parent
df084b0aa7
commit
df97619e41
1 changed files with 14 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue