summary refs log tree commit diff
path: root/gnu/packages/julia-xyz.scm
diff options
context:
space:
mode:
authorzimoun <zimon.toutoune@gmail.com>2021-12-01 16:54:41 +0100
committerEfraim Flashner <efraim@flashner.co.il>2021-12-04 19:50:33 +0200
commit82586916be212cff4a366df2b0778ad8019ef59f (patch)
tree19b9a3040d230c67932c5d9459953bbab442633a /gnu/packages/julia-xyz.scm
parenteb4f1fcf7435b30662d3982ff83d97d2ebaee2e8 (diff)
downloadguix-82586916be212cff4a366df2b0778ad8019ef59f.tar.gz
gnu: julia-geometrybasics: Fix tests on i686-linux.
* gnu/packages/julia-xyz (julia-geometrybasics)[arguments]<#:phases>:
Conditionally replace the incorrect type in test suite.

Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
Diffstat (limited to 'gnu/packages/julia-xyz.scm')
-rw-r--r--gnu/packages/julia-xyz.scm12
1 files changed, 8 insertions, 4 deletions
diff --git a/gnu/packages/julia-xyz.scm b/gnu/packages/julia-xyz.scm
index a757e5ff49..bcb1d48141 100644
--- a/gnu/packages/julia-xyz.scm
+++ b/gnu/packages/julia-xyz.scm
@@ -1981,14 +1981,18 @@ matrices the Schur form is often more useful.")
            (lambda _
              (substitute* '("Project.toml"
                             "src/GeometryBasics.jl")
-               ((".*EarCut.*") ""))
-             #t))
+               ((".*EarCut.*") ""))))
          (add-after 'link-depot 'skip-incompatible-test
            (lambda _
              (substitute* "test/runtests.jl"
                (("@testset.*MetaT and heterogeneous data.*" all)
-                (string-append all "return\n")))
-             #t)))))
+                (string-append all "return\n")))))
+         ,@(if (target-64bit?)
+             '()
+             '((add-after 'unpack 'fix-tests-int32-i686
+                 (lambda _
+                   (substitute* "test/runtests.jl"
+                     (("Int64") "Int32")))))))))
     (propagated-inputs
      `(("julia-itertools" ,julia-itertools)
        ("julia-staticarrays" ,julia-staticarrays)