[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
10/26: gnu: go-gopkg-in-irc-v3: Enable tests.
From: |
guix-commits |
Subject: |
10/26: gnu: go-gopkg-in-irc-v3: Enable tests. |
Date: |
Tue, 7 May 2024 18:24:51 -0400 (EDT) |
sharlatan pushed a commit to branch master
in repository guix.
commit b6a8c4c1427ed89cf1cc0fde3036173dd38fc851
Author: Sharlatan Hellseher <sharlatanus@gmail.com>
AuthorDate: Sat May 4 21:08:51 2024 +0100
gnu: go-gopkg-in-irc-v3: Enable tests.
* gnu/packages/irc.scm (go-gopkg-in-irc-v3): Enable tests, remove input
lables.
[propagated-inputs]: Remove go-github-com-stretchr-testify.
[native-inputs]: Add go-github-com-stretchr-testify and
python-irc-parser-tests.
Change-Id: I83c8094e9417052781993c3cde900c47875a2029
---
gnu/packages/irc.scm | 28 ++++++++++++++++++++++------
1 file changed, 22 insertions(+), 6 deletions(-)
diff --git a/gnu/packages/irc.scm b/gnu/packages/irc.scm
index a310dd529b..1b291f54b9 100644
--- a/gnu/packages/irc.scm
+++ b/gnu/packages/irc.scm
@@ -796,13 +796,29 @@ parsers")
(base32 "0f2vv947yf9ygy8ylwqkd9yshybfdsbsp9pffjyvm7l7rnq5da60"))))
(build-system go-build-system)
(arguments
- '(;; TODO 3 tests fail because of missing files
- ;;
https://paste.sr.ht/~whereiseveryone/784d068887a65c1b869caa7d7c2077d28a2b2187
- #:tests? #f
- #:import-path "gopkg.in/irc.v3" #:unpack-path "gopkg.in/irc.v3"))
+ (list
+ #:import-path "gopkg.in/irc.v3"
+ #:phases
+ #~(modify-phases %standard-phases
+ ;; Testscases is a git submodule to
+ ;; <https://github.com/go-irc/irc-parser-tests> which is an
+ ;; unmaintained clone of <https://github.com/ircdocs/parser-tests>
+ ;; which is packed in Guix as python-irc-parser-tests. Tests data
+ ;; (YAML files) are distributed as Python package and located in
+ ;; <lib/python3.10/site-packages/parser_tests/data/>.
+ (add-before 'check 'install-testcases-data
+ (lambda* (#:key import-path #:allow-other-keys)
+ (with-directory-excursion (string-append "src/" import-path)
+ (mkdir-p "./testcases/tests")
+ (for-each
+ (lambda (file)
+ (install-file file "./testcases/tests"))
+ (find-files
+ #$(this-package-native-input "python-irc-parser-tests")
"\\.yaml$"))))))))
+ (native-inputs
+ (list go-github-com-stretchr-testify python-irc-parser-tests))
(propagated-inputs
- `(("go-gopkg-in-yaml-v2" ,go-gopkg-in-yaml-v2)
- ("go-github-com-stretchr-testify" ,go-github-com-stretchr-testify)))
+ (list go-gopkg-in-yaml-v2))
(home-page "https://gopkg.in/irc.v3")
(synopsis "Low-level IRC library for Go")
(description "Package irc provides a simple IRC library meant as a
- 03/26: gnu: Add go-github-com-msteinert-pam., (continued)
- 03/26: gnu: Add go-github-com-msteinert-pam., guix-commits, 2024/05/07
- 11/26: gnu: Add go-gopkg-in-irc-v4., guix-commits, 2024/05/07
- 17/26: gnu: Add go-github-com-msteinert-pam-v2., guix-commits, 2024/05/07
- 14/26: gnu: go-github-com-prometheus-client-golang: Update to 1.17.0., guix-commits, 2024/05/07
- 19/26: gnu: tmsu: Enable test suite., guix-commits, 2024/05/07
- 23/26: gnu: go-git-sr-ht-emersion-gqlclient: Move to golang-web., guix-commits, 2024/05/07
- 01/26: gnu: Add go-github-com-golang-jwt-jwt., guix-commits, 2024/05/07
- 08/26: gnu: Add go-git-sr-ht-emersion-go-sqlite3-fts5., guix-commits, 2024/05/07
- 06/26: gnu: go-github-com-mattn-go-sqlite3: Update to 1.14.22., guix-commits, 2024/05/07
- 13/26: gnu: go-github-com-prometheus-common: Update to 0.45.0., guix-commits, 2024/05/07
- 10/26: gnu: go-gopkg-in-irc-v3: Enable tests.,
guix-commits <=
- 16/26: gnu: Add soju., guix-commits, 2024/05/07
- 18/26: gnu: sqls: Use go-1.21., guix-commits, 2024/05/07
- 20/26: gnu: go-github-com-nbrownus-go-metrics-prometheus: Disable tests., guix-commits, 2024/05/07
- 24/26: gnu: go-git-sr-ht-emersion-go-scfg: Move to golang-xyz., guix-commits, 2024/05/07
- 02/26: gnu: Add go-github-com-sherclockholmes-webpush-go., guix-commits, 2024/05/07
- 04/26: gnu: Add go-nhooyr-io-websocket., guix-commits, 2024/05/07
- 15/26: gnu: go-github-com-matttproud-golang-protobuf-extensions-pbutil: Update to 2.0.0., guix-commits, 2024/05/07
- 22/26: gnu: go-git-sr-ht-sircmpwn-getopt: Move to golang-xyz., guix-commits, 2024/05/07
- 21/26: gnu: web: Remove syncthing module from used modules., guix-commits, 2024/05/07
- 26/26: gnu: kubo: Unbundle go-bazil-org-fuse., guix-commits, 2024/05/07