guix-commits
[Top][All Lists]
Advanced

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

04/17: gnu: julia-finitedifferences: Fix tests on i686-linux.


From: guix-commits
Subject: 04/17: gnu: julia-finitedifferences: Fix tests on i686-linux.
Date: Sat, 4 Dec 2021 12:54:04 -0500 (EST)

efraim pushed a commit to branch core-updates-frozen
in repository guix.

commit a31a4517b612935c6a6e4ef5caf5849fcdf56cc2
Author: zimoun <zimon.toutoune@gmail.com>
AuthorDate: Wed Dec 1 16:53:50 2021 +0100

    gnu: julia-finitedifferences: Fix tests on i686-linux.
    
    * gnu/packages/julia-xyz (julia-finitedifferences)[arguments]<#:phases>:
    Conditionnally disable the failing test.
    
    Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
---
 gnu/packages/julia-xyz.scm | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/gnu/packages/julia-xyz.scm b/gnu/packages/julia-xyz.scm
index 6ef040f..0a57f28 100644
--- a/gnu/packages/julia-xyz.scm
+++ b/gnu/packages/julia-xyz.scm
@@ -1683,6 +1683,17 @@ types and sparsity.")
        (sha256
         (base32 "09nsf9cgk49yrvprflnhd9h5rrgs280rgj8sad3csghxdx6jqk5c"))))
     (build-system julia-build-system)
+    (arguments
+     `(#:phases
+       ,@(if (target-x86-32?)
+           '((modify-phases %standard-phases
+               (add-after 'unpack 'remove-failing-test-i686
+                 (lambda _
+                   ;; Machine Precision incorrectly handled
+                   (substitute* "test/methods.jl"
+                     (("@test central_fdm\\(15, 5, adapt=2\\)\\(exp, 1.0\\)")
+                      "@test_broken central_fdm(15, 5, adapt=2)(exp, 
1.0)"))))))
+           '(%standard-phases))))
     (inputs
      `(("julia-benchmarktools" ,julia-benchmarktools)))
     (propagated-inputs



reply via email to

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