mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-12 06:06:53 -05:00
gnu: OpenEXR: Disable failing test on 32-bit systems.
* gnu/packages/graphics.scm (openexr)[arguments]: Patch out one more test. While at it, simplify substitutions, and enable them on 64-bit systems.
This commit is contained in:
parent
9d731fb61d
commit
ae5c63d73f
1 changed files with 19 additions and 11 deletions
|
@ -433,23 +433,31 @@ (define-public openexr
|
|||
#t))))
|
||||
(build-system cmake-build-system)
|
||||
(arguments
|
||||
'(#:phases
|
||||
`(#:phases
|
||||
(modify-phases %standard-phases
|
||||
(add-after 'unpack 'change-directory
|
||||
(lambda _
|
||||
(chdir "OpenEXR")
|
||||
#t))
|
||||
(add-after 'change-directory 'disable-broken-test
|
||||
(add-before 'check 'increase-test-timeout
|
||||
(lambda _
|
||||
;; On armhf-linux, we need to override the CTest default
|
||||
;; timeout of 1500 seconds for the OpenEXR.IlmImf test.
|
||||
(setenv "CTEST_TEST_TIMEOUT" "2000")
|
||||
#t))
|
||||
,@(if (not (target-64bit?))
|
||||
`((add-after 'change-directory 'disable-broken-test
|
||||
;; This test fails on i686. Upstream developers suggest that
|
||||
;; this test is broken on i686 and can be safely disabled:
|
||||
;; https://github.com/openexr/openexr/issues/67#issuecomment-21169748
|
||||
(lambda _
|
||||
(substitute* "IlmImfTest/main.cpp"
|
||||
(("#include \"testOptimizedInterleavePatterns.h\"")
|
||||
"//#include \"testOptimizedInterleavePatterns.h\"")
|
||||
(("TEST \\(testOptimizedInterleavePatterns")
|
||||
"//TEST (testOptimizedInterleavePatterns"))
|
||||
#t)))))
|
||||
((".*testOptimizedInterleavePatterns.*") "")
|
||||
;; This test is broken in 2.4.0 and will be fixed in a later
|
||||
;; release: <https://github.com/openexr/openexr/issues/571>.
|
||||
((".*testLargeDataWindowOffsets.*") ""))
|
||||
#t)))
|
||||
'()))))
|
||||
(native-inputs
|
||||
`(("pkg-config" ,pkg-config)))
|
||||
(propagated-inputs
|
||||
|
|
Loading…
Reference in a new issue