From 3a94f439b39f3f4e11dd8feeb77bfc4e35d4735d Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 27 Jun 2024 14:42:03 +0100 Subject: 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 --- gnu/packages/golang-web.scm | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) (limited to 'gnu') diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm index b727a0165a..0b4970f5d5 100644 --- a/gnu/packages/golang-web.scm +++ b/gnu/packages/golang-web.scm @@ -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 + ;; , 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") -- cgit 1.4.1