sharlatan pushed a commit to branch go-team in repository guix. commit c8b3413f8743026cfe83daf9be0d95dc38388b05 Author: Sharlatan Hellseher <sharlata...@gmail.com> 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