[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#52078] [PATCH 1/2] gnu: julia: Disable broken tests.
From: |
zimoun |
Subject: |
[bug#52078] [PATCH 1/2] gnu: julia: Disable broken tests. |
Date: |
Wed, 24 Nov 2021 15:19:07 +0100 |
* gnu/packages/julia.scm (julia)[arguments]: Disable broken tests.
---
gnu/packages/julia.scm | 13 ++++++++++++-
1 file changed, 12 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/julia.scm b/gnu/packages/julia.scm
index aff7e1a66f..0d4dd2b7f2 100644
--- a/gnu/packages/julia.scm
+++ b/gnu/packages/julia.scm
@@ -382,7 +382,18 @@ (define-public julia
;(setenv "LC_ALL" "en_US.utf8")
(substitute* "test/cmdlineargs.jl"
(("test v\\[3") "test_broken v[3")
- (("test isempty\\(v\\[3") "test_broken isempty(v[3"))))
+ (("test isempty\\(v\\[3") "test_broken isempty(v[3"))
+ ;; These tests randomly fails because they depend on CPU.
+ (substitute* "stdlib/LinearAlgebra/test/matmul.jl"
+ ;; Fixed in v1.6.4
+ ;;
https://github.com/JuliaLang/julia/blob/v1.6.4/stdlib/LinearAlgebra/test/matmul.jl#L155
+ (("@test mul\\!\\(C, vf, transpose\\(vf\\), 2, 3\\) ==
2vf\\*vf' \\.\\+ 3C0")
+ "@test mul!(C, vf, transpose(vf), 2, 3) ≈ 2vf*vf' .+ 3C0"))
+ (substitute* "test/math.jl"
+ ;; @test_broken cannot be used because if the test randomly
+ ;; passes, then it also raises an error.
+ (("@test isinf\\(log1p\\(-one\\(T\\)\\)\\)")
+ " "))))
(add-before 'install 'symlink-libraries
(lambda* (#:key inputs outputs #:allow-other-keys)
(let ((link
base-commit: 6605d9ba356f7975e75c0664d9ef02bb7bc9cc1e
--
2.32.0
- [bug#52078] [PATCH 1/2] gnu: julia: Disable broken tests.,
zimoun <=