guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

branch master updated: gnu: clojure-data-xml: Fix test suite


From: guix-commits
Subject: branch master updated: gnu: clojure-data-xml: Fix test suite
Date: Tue, 08 Feb 2022 05:52:10 -0500

This is an automated email from the git hooks/post-receive script.

roptat pushed a commit to branch master
in repository guix.

The following commit(s) were added to refs/heads/master by this push:
     new 6d35754102 gnu: clojure-data-xml: Fix test suite
6d35754102 is described below

commit 6d357541021578914eba7bb33d2529a6744de36d
Author: Ryan Sundberg via Guix-patches via <guix-patches@gnu.org>
AuthorDate: Mon Feb 7 21:28:13 2022 -0800

    gnu: clojure-data-xml: Fix test suite
    
    Removes clojurescript related tests that interfere with the JDK clojure
    test suite, causing it to fail.
    
    * gnu/packages/clojure.scm (clojure-data-xml)[arguments]: Add
    'delete-cljs-tests phase
    
    Signed-off-by: Julien Lepiller <julien@lepiller.eu>
---
 gnu/packages/clojure.scm | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/clojure.scm b/gnu/packages/clojure.scm
index 40a3d7708a..e6eb749501 100644
--- a/gnu/packages/clojure.scm
+++ b/gnu/packages/clojure.scm
@@ -332,8 +332,14 @@ is on par with Java implementations, e.g., Apache 
commons-codec.")
     (build-system clojure-build-system)
     (arguments
      '(#:source-dirs '("src/main/clojure")
-       #:test-dirs '("src/test/clojure")
-       #:doc-dirs '()))
+       #:test-dirs '("src/test/clojure" "src/test/resources")
+       #:doc-dirs '()
+       #:phases
+       (modify-phases %standard-phases
+         (add-before 'build 'delete-cljs-tests
+                     (lambda _
+                       (delete-file 
"src/test/resources/clojure/data/xml/cljs_testsuite.clj")
+                       (delete-file 
"src/test/clojure/clojure/data/xml/test_cljs.clj"))))))
     (propagated-inputs (list clojure-data-codec))
     (synopsis "Clojure library for reading and writing XML data")
     (description "@code{data.xml} is a Clojure library for reading and writing



reply via email to

[Prev in Thread] Current Thread [Next in Thread]