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:
parent
9bcb67166f
commit
3a94f439b3
1 changed files with 19 additions and 2 deletions
|
@ -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")
|
||||
|
|
Reference in a new issue