gnu: openjpeg: Enable tests.
* gnu/packages/image.scm (openjpeg)[arguments]: Enable the test suite. Pass -DBUILD_UNIT_TESTS, -DBUILD_TESTING, and -DOPJ_DATA_ROOT to #:configure-flags. Add a new 'disable-failing-tests' phase. [native-inputs]: Add openjpeg-data. Signed-off-by: Leo Famulari <leo@famulari.name>
This commit is contained in:
parent
0ad27959d8
commit
ce5f9afcd1
1 changed files with 19 additions and 2 deletions
|
@ -830,8 +830,25 @@ (define-public openjpeg
|
||||||
(base32 "1dn98d2dfa1lqyxxmab6rrcv52dyhjr4g7i4xf2w54fqsx14ynrb"))))
|
(base32 "1dn98d2dfa1lqyxxmab6rrcv52dyhjr4g7i4xf2w54fqsx14ynrb"))))
|
||||||
(build-system cmake-build-system)
|
(build-system cmake-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
'(#:tests? #f ;TODO: requires a 1.1 GiB data repository
|
`(#:configure-flags
|
||||||
#:configure-flags '("-DBUILD_STATIC_LIBS=OFF")))
|
(list
|
||||||
|
"-DBUILD_STATIC_LIBS=OFF"
|
||||||
|
"-DBUILD_UNIT_TESTS=ON"
|
||||||
|
"-DBUILD_TESTING=ON"
|
||||||
|
(string-append "-DOPJ_DATA_ROOT="
|
||||||
|
(assoc-ref %build-inputs "openjpeg-data")))
|
||||||
|
#:phases
|
||||||
|
(modify-phases %standard-phases
|
||||||
|
;; To be re-enabled after upstream fixes the bug,
|
||||||
|
;; https://github.com/uclouvain/openjpeg/issues/1264
|
||||||
|
(add-after 'unpack 'disable-failing-tests
|
||||||
|
(lambda _
|
||||||
|
(substitute* "tests/CMakeLists.txt"
|
||||||
|
(("add_subdirectory\\(nonregression\\)")
|
||||||
|
""))
|
||||||
|
#t)))))
|
||||||
|
(native-inputs
|
||||||
|
`(("openjpeg-data" ,openjpeg-data))) ; Files for test-suite
|
||||||
(inputs
|
(inputs
|
||||||
`(("lcms" ,lcms)
|
`(("lcms" ,lcms)
|
||||||
("libpng" ,libpng)
|
("libpng" ,libpng)
|
||||||
|
|
Loading…
Reference in a new issue