~ruther/guix-local

1cc99c8565af9c56bcc93d2635704767465e3cc2 — Roman Scherer 2 months ago c1f2a0e
gnu: opencv: Skip failing test on aarch64.

* gnu/packages/image-processing.scm (opencv)[arguments]: Disable
ReferenceAccuracy test due to floating-point precision differences
with ARM NEON.

Signed-off-by: Andreas Enge <andreas@enge.fr>
1 files changed, 7 insertions(+), 1 deletions(-)

M gnu/packages/image-processing.scm
M gnu/packages/image-processing.scm => gnu/packages/image-processing.scm +7 -1
@@ 645,7 645,13 @@ different data arrays similar to those available in the numdiff software.")
                   (substitute* "modules/photo/test/test_hdr.cpp"
                     (("0\\.131") "0.222"))
                   ;; These tests hang forever on aarch64.
                   (delete-file-recursively "modules/videoio/test/"))
                   (delete-file-recursively "modules/videoio/test/")
                   ;; This test fails on aarch64 due to floating-point precision
                   ;; differences with ARM NEON.
                   ;; Expected: RMSE <= 0.34, actual: 0.407627
                   (substitute* "../opencv-contrib/modules/optflow/test/test_OF_accuracy.cpp"
                     (("\\bReferenceAccuracy\\b" all)
                      (string-append "DISABLED_" all))))
                 '())

             ,@(if (target-riscv64?)