[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
03/06: gnu: julia: Disable broken tests.
From: |
guix-commits |
Subject: |
03/06: gnu: julia: Disable broken tests. |
Date: |
Thu, 25 Nov 2021 01:40:04 -0500 (EST) |
apteryx pushed a commit to branch core-updates-frozen
in repository guix.
commit 87e96b69aae4d02fdbef3eb6b9283e61a96a449b
Author: zimoun <zimon.toutoune@gmail.com>
AuthorDate: Thu Nov 25 02:24:41 2021 +0100
gnu: julia: Disable broken tests.
* gnu/packages/julia.scm (julia)[arguments]: Disable broken tests.
Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
---
gnu/packages/julia.scm | 19 ++++++++++++++++---
1 file changed, 16 insertions(+), 3 deletions(-)
diff --git a/gnu/packages/julia.scm b/gnu/packages/julia.scm
index aff7e1a..d0329a9 100644
--- a/gnu/packages/julia.scm
+++ b/gnu/packages/julia.scm
@@ -358,8 +358,8 @@ libraries. It is also a bit like @code{ldd} and
@code{otool -L}.")
;; Dates/io tests fail on master when networking is unavailable
;; https://github.com/JuliaLang/julia/issues/34655
(substitute* "stdlib/Dates/test/io.jl"
- (("\"Dates.Date") "\"Date")
- (("\"Dates.Time") "\"Time"))
+ (("using Dates") "import Dates
+using Dates: @dateformat_str, Date, DateTime, DateFormat, Time"))
;; Upstream bug I found when packaging
;; https://github.com/JuliaLang/julia/issues/35785
(substitute* "test/file.jl"
@@ -382,7 +382,20 @@ libraries. It is also a bit like @code{ldd} and
@code{otool -L}.")
;(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 (see:
+ ;; 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
- branch core-updates-frozen updated (c70eade -> c9208be), guix-commits, 2021/11/25
- 02/06: gnu: glib-networking: Update to 2.70.0., guix-commits, 2021/11/25
- 04/06: gnu: julia: Allow parallel tests., guix-commits, 2021/11/25
- 01/06: gnu: libva: Update to 2.13.0, guix-commits, 2021/11/25
- 03/06: gnu: julia: Disable broken tests.,
guix-commits <=
- 05/06: build: julia-build-system: Add support for parallel tests., guix-commits, 2021/11/25
- 06/06: gnu: zathura: Use meson 0.59., guix-commits, 2021/11/25