guix_mirror_bot pushed a commit to branch master
in repository guix.

commit 8c25cc5c301bc4424ed696f849f26157e00e98bb
Author: Sharlatan Hellseher <[email protected]>
AuthorDate: Tue Oct 21 22:22:13 2025 +0100

    gnu: go-github-com-santhosh-tekuri-jsonschema-v5: Run more tests.
    
    * gnu/packages/golang-web.scm (go-github-com-santhosh-tekuri-jsonschema-v5):
    [arguments] <test-flags>: Skip just one test group.
    [phases] {copy-json-schema-specs}: Include "remote" directory
    {remove-json-schema-spec}: Completely remove "testdata" directory.
    
    Change-Id: Ied3a3a9a30a9890543dfce4537b9fd914a0c8544
---
 gnu/packages/golang-web.scm | 27 +++++++++------------------
 1 file changed, 9 insertions(+), 18 deletions(-)

diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm
index 53693c8eaa..4c02152a07 100644
--- a/gnu/packages/golang-web.scm
+++ b/gnu/packages/golang-web.scm
@@ -10188,21 +10188,8 @@ information or even the peer of a VETH interface.")
      (list
       #:import-path "github.com/santhosh-tekuri/jsonschema/v5"
       #:test-flags
-      #~(list "-skip" (string-join
-                       ;; TODO: Figure out why these test patterns fail.
-                       (list "TestDraft2019/optional"
-                             "TestDraft2019/refRemote.json"
-                             "TestDraft2019/vocabulary.json"
-                             "TestDraft2020/dynamicRef.json"
-                             "TestDraft2020/optional"
-                             "TestDraft2020/refRemote.json"
-                             "TestDraft2020/vocabulary.json"
-                             "TestDraft4/refRemote.json"
-                             "TestDraft6/refRemote.json"
-                             "TestDraft7/optional"
-                             "TestDraft7/refRemote.json"
-                             "TestExtra/draft2020")
-                       "|"))
+      ;; Figure out why these test patterns fail.
+      #~(list "-skip" "TestDraft2020")
       #:phases
       #~(modify-phases %standard-phases
           (add-after 'unpack 'copy-json-schema-specs
@@ -10212,12 +10199,16 @@ information or even the peer of a VETH interface.")
                  (string-append #$(this-package-native-input
                                    "specification-json-schema-test-suite")
                                 "/share/tests")
-                 "testdata/JSON-Schema-Test-Suite/tests"))))
+                 "testdata/JSON-Schema-Test-Suite/tests")
+                (copy-recursively
+                 (string-append #$(this-package-native-input
+                                   "specification-json-schema-test-suite")
+                                "/share/remotes")
+                 "testdata/JSON-Schema-Test-Suite/remotes"))))
           (add-after 'check 'remove-json-schema-specs
             (lambda* (#:key import-path #:allow-other-keys)
               (with-directory-excursion (string-append "src/" import-path)
-                (delete-file-recursively
-                 "testdata/JSON-Schema-Test-Suite/tests")))))))
+                (delete-file-recursively "testdata")))))))
     (native-inputs
      (list specification-json-schema-test-suite))
     (home-page "https://github.com/santhosh-tekuri/jsonschema";)

Reply via email to