summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authordan <i@dan.games>2025-10-24 17:14:33 +0800
committerAndreas Enge <andreas@enge.fr>2025-11-22 10:17:43 +0100
commitdb59a6ea3c32598653391830c39f1cca8e8f2c1a (patch)
tree156a20fd113729e5059d7c5ebd96e4eca5c4190c /gnu
parent61ab28c2a7a7a4fb940f692b43027708f3be2ff1 (diff)
gnu: opencolorio: Disable a failing test case on ARM and RISC-V.
* gnu/packages/image-processing.scm (opencolorio): Disable a failing test case on ARM and RISC-V. Change-Id: If7ef40f72b0d42be47a3771a18e18c7c97b202ea Signed-off-by: Andreas Enge <andreas@enge.fr>
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/image-processing.scm16
1 files changed, 15 insertions, 1 deletions
diff --git a/gnu/packages/image-processing.scm b/gnu/packages/image-processing.scm
index f06d4693428..ea53d902341 100644
--- a/gnu/packages/image-processing.scm
+++ b/gnu/packages/image-processing.scm
@@ -27,6 +27,7 @@
;;; Copyright © 2025 Jake Forster <jakecameron.forster@gmail.com>
;;; Copyright © 2025 Anderson Torres <anderson.torres.8519@gmail.com>
;;; Copyright © 2025 Andreas Enge <andreas@enge.fr>
+;;; Copyright © 2025 dan <i@dan.games>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -303,7 +304,20 @@ licences similar to the Modified BSD licence."))))
;; (see https://github.com/AcademySoftwareFoundation/OpenColorIO/blob/v2.4.2/tests/cpu/Config_tests.cpp#L6227)
(substitute* "tests/cpu/Config_tests.cpp"
(("cs1\\\\t\\\\n \\\\n, \\\\ncs2")
- "cs1, cs2")))))))
+ "cs1, cs2"))))
+ ;; Disable a failing test case on arm and riscv due to FMA
+ ;; instructions being generated.
+ ;; (see https://github.com/AcademySoftwareFoundation/OpenColorIO/issues/1784)
+ #$@(if (or (target-arm?)
+ (target-riscv64?))
+ #~((add-after 'unpack 'disable-failing-test
+ (lambda _
+ (substitute* "tests/cpu/ops/gamma/GammaOpCPU_tests.cpp"
+ ((".*apply_moncurve_mirror_style_fwd.*" all)
+ (string-append "#if 0\n" all))
+ ((".*apply_moncurve_mirror_style_rev.*" all)
+ (string-append "#endif\n" all))))))
+ #~()))))
(native-inputs
;; XXX: OCIO has unit tests for OpenShadingLanguage, but they fail.
;; They also require OIIO, but OCIO is an optional dependency to it.