Archived
1
0
Fork 0

gnu: go-github-com-oschwald-maxminddb-golang: Enable tests.

* gnu/packages/golang-web.scm (go-github-com-oschwald-maxminddb-golang):
Enable tests.
[native-inputs]: Add go-github-com-stretchr-testify.

Change-Id: Idf3c98bdf832422779b045adb348dfaea6f8d3e2
This commit is contained in:
Sharlatan Hellseher 2024-06-27 14:42:03 +01:00
parent 9bcb67166f
commit 3a94f439b3
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -1846,8 +1846,25 @@ which produce colorized output using github.com/fatih/color.")
(arguments
(list
#:go go-1.21
#:tests? #f ; Requires some unpackaged software and test data
#:import-path "github.com/oschwald/maxminddb-golang"))
#:import-path "github.com/oschwald/maxminddb-golang"
#:phases
#~(modify-phases %standard-phases
;; XXX: Remove most of the tests requiring test-data from submodule
;; <https://github.com/maxmind/MaxMind-DB>, there is a documented
;; process on how to generate it, consider to pack and activate
;; tests in the next update cycle.
(add-after 'unpack 'remove-failing-tests
(lambda* (#:key import-path #:allow-other-keys)
(with-directory-excursion (string-append "src/" import-path)
(for-each delete-file
(list "decoder_test.go"
"deserializer_test.go"
"example_test.go"
"reader_test.go"
"traverse_test.go"
"verifier_test.go"))))))))
(native-inputs
(list go-github-com-stretchr-testify))
(propagated-inputs
(list go-golang-org-x-sys))
(home-page "https://github.com/oschwald/maxminddb-golang")