diff mbox series

[bug#57931,v1,4/6] gnu: openexr: Skip failing tests on i686.

Message ID 20220919105616.9354-4-GNUtoo@cyberdimension.org
State New
Headers show
Series [bug#57931,v1,1/6] gnu: directfb: Build with librsvg-for-system. | expand

Checks

Context Check Description
cbaines/comparison success View comparision
cbaines/git-branch success View Git branch
cbaines/applying patch success View Laminar job
cbaines/issue success View issue
cbaines/comparison success View comparision
cbaines/git-branch success View Git branch
cbaines/applying patch success View Laminar job
cbaines/issue success View issue

Commit Message

Denis 'GNUtoo' Carikli Sept. 19, 2022, 10:56 a.m. UTC
* gnu/packages/graphics.scm (openexr)[arguments]:
  Add phase to disable failing tests on i686.
---
 gnu/packages/graphics.scm | 45 ++++++++++++++++++++++++++++++---------
 1 file changed, 35 insertions(+), 10 deletions(-)
diff mbox series

Patch

diff --git a/gnu/packages/graphics.scm b/gnu/packages/graphics.scm
index 54ee3994e8..4ac7440976 100644
--- a/gnu/packages/graphics.scm
+++ b/gnu/packages/graphics.scm
@@ -1131,16 +1131,41 @@  (define-public openexr
                 "0c9vla0kbsbbhkk42jlbf94nzfb1anqh7dy9b0b3nna1qr6v4bh6"))))
     (build-system cmake-build-system)
     (arguments
-     '(#:phases (modify-phases %standard-phases
-                  ;; /var/tmp does not exist in the Guix build environment
-                  (add-after 'unpack 'patch-test-directory
-                    (lambda _
-                      (substitute* '("src/test/OpenEXRUtilTest/tmpDir.h"
-                                     "src/test/OpenEXRFuzzTest/tmpDir.h"
-                                     "src/test/OpenEXRTest/tmpDir.h"
-                                     "src/test/OpenEXRCoreTest/main.cpp")
-                        (("/var/tmp")
-                         "/tmp")))))))
+     (list #:phases #~(modify-phases %standard-phases
+                        (add-after 'unpack 'patch-test-directory
+                          (lambda _
+                            (substitute* (list
+                                          "src/test/OpenEXRUtilTest/tmpDir.h"
+                                          "src/test/OpenEXRFuzzTest/tmpDir.h"
+                                          "src/test/OpenEXRTest/tmpDir.h"
+                                          "src/test/OpenEXRCoreTest/main.cpp")
+                              (("/var/tmp")
+                               "/tmp"))))
+                        #$@(if (not (target-64bit?))
+                               (list #~(add-after 'patch-test-directory
+                                                  'disable-broken-tests
+                                                  (lambda _
+                                                    (substitute*
+						     (list
+						      "src/test/OpenEXRCoreTest/main.cpp"
+						      "src/test/OpenEXRTest/main.cpp")
+                                                      (("TEST \\(testCompression, \"basic\"\\);")
+                                                       "")
+                                                      (("TEST\\( testNoCompression, \"core_compression\" \\);")
+                                                       "")
+                                                      (("TEST\\( testRLECompression, \"core_compression\" \\);")
+                                                       "")
+                                                      (("TEST\\( testZIPCompression, \"core_compression\" \\);")
+                                                       "")
+                                                      (("TEST\\( testZIPSCompression, \"core_compression\" \\);")
+                                                       "")
+                                                      (("TEST\\( testB44Compression, \"core_compression\" \\);")
+                                                       "")
+                                                      (("TEST\\( testB44ACompression, \"core_compression\" \\);")
+                                                       "")
+                                                      (("TEST \\(testOptimizedInterleavePatterns, \"basic\"\\);")
+                                                       "")))))
+                               (list)))))
     (inputs (list imath zlib))
     (home-page "https://www.openexr.com/")
     (synopsis "High-dynamic-range file format library")