guix-patches
[Top][All Lists]
Advanced

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

[bug#52186] [core-updates-frozen PATCH v2 03/17] gnu: julia-benchmarktoo


From: zimoun
Subject: [bug#52186] [core-updates-frozen PATCH v2 03/17] gnu: julia-benchmarktools: Fix tests on i686-linux.
Date: Wed, 1 Dec 2021 16:53:49 +0100

* gnu/packages/julia-xyz.scm (julia-benchmarktools)[arguments]<#:phases>:
Conditionnally disable the failing tests.
---
 gnu/packages/julia-xyz.scm | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

diff --git a/gnu/packages/julia-xyz.scm b/gnu/packages/julia-xyz.scm
index da1dae40f0..d668924bf7 100644
--- a/gnu/packages/julia-xyz.scm
+++ b/gnu/packages/julia-xyz.scm
@@ -298,6 +298,26 @@ (define-public julia-benchmarktools
        (sha256
         (base32 "1xz3kdrphp4b158pg7dwkiry49phs2fjjpdvk1hjpww5ykxacks8"))))
     (build-system julia-build-system)
+    (arguments
+     `(#:phases
+       ,@(if (string-prefix? "i686" (or (%current-target-system)
+                                        (%current-system)))
+             '((modify-phases %standard-phases
+                 (add-after 'unpack 'remove-failing-tests-i686
+                   (lambda _
+                     (substitute* "test/GroupsTests.jl"
+                       (("@test sprint\\(show, g1\\)")
+                        "@test_broken sprint(show, g1)")
+                       (("@test sprint\\(show, g1; context = :boundto => 1\\)")
+                        "@test_broken sprint(show, g1; context = :boundto => 
1)")
+                       (("@test sprint\\(show, g1; context = :limit => 
false\\)")
+                        "@test_broken sprint(show, g1; context = :limit => 
false)")
+                       (("@test @test_deprecated") "@test_broken"))
+                     (substitute* "test/ExecutionTests.jl"
+                       ;; Evaluated: 12 == 8
+                       (("@test @ballocated\\(Ref\\(1\\)\\)")
+                        "@test_broken @ballocated(Ref(1))"))))))
+             '(%standard-phases))))
     (propagated-inputs `(("julia-json" ,julia-json)))
     (home-page "https://github.com/JuliaCI/BenchmarkTools.jl";)
     (synopsis "Benchmarking framework for the Julia language")
-- 
2.32.0






reply via email to

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