openjpeg: enable tests
This commit is contained in:
parent
5c85b24edc
commit
3e5ccd4300
|
@ -1,5 +1,5 @@
|
||||||
{ stdenv, fetchFromGitHub, cmake, pkgconfig
|
{ stdenv, fetchFromGitHub, cmake, pkgconfig
|
||||||
, libpng, libtiff, lcms2
|
, libpng, libtiff, lcms2, jpylyzer
|
||||||
, mj2Support ? true # MJ2 executables
|
, mj2Support ? true # MJ2 executables
|
||||||
, jpwlLibSupport ? true # JPWL library & executables
|
, jpwlLibSupport ? true # JPWL library & executables
|
||||||
, jpipLibSupport ? false # JPIP library & executables
|
, jpipLibSupport ? false # JPIP library & executables
|
||||||
|
@ -8,7 +8,7 @@
|
||||||
, openjpegJarSupport ? false # Openjpeg jar (Java)
|
, openjpegJarSupport ? false # Openjpeg jar (Java)
|
||||||
, jp3dSupport ? true # # JP3D comp
|
, jp3dSupport ? true # # JP3D comp
|
||||||
, thirdPartySupport ? false # Third party libraries - OFF: only build when found, ON: always build
|
, thirdPartySupport ? false # Third party libraries - OFF: only build when found, ON: always build
|
||||||
, testsSupport ? false
|
, testsSupport ? true
|
||||||
, jdk ? null
|
, jdk ? null
|
||||||
# Inherit generics
|
# Inherit generics
|
||||||
, branch, version, revision, sha256, patches ? [], extraFlags ? [], ...
|
, branch, version, revision, sha256, patches ? [], extraFlags ? [], ...
|
||||||
|
@ -62,6 +62,13 @@ stdenv.mkDerivation rec {
|
||||||
|
|
||||||
propagatedBuildInputs = [ libpng libtiff lcms2 ];
|
propagatedBuildInputs = [ libpng libtiff lcms2 ];
|
||||||
|
|
||||||
|
doCheck = testsSupport;
|
||||||
|
checkPhase = ''
|
||||||
|
substituteInPlace ../tools/ctest_scripts/travis-ci.cmake \
|
||||||
|
--replace "JPYLYZER_EXECUTABLE=" "JPYLYZER_EXECUTABLE=\"${jpylyzer}/bin/jpylyzer\" # "
|
||||||
|
OPJ_SOURCE_DIR=.. ctest -S ../tools/ctest_scripts/travis-ci.cmake
|
||||||
|
'';
|
||||||
|
|
||||||
passthru = {
|
passthru = {
|
||||||
incDir = "openjpeg-${branch}";
|
incDir = "openjpeg-${branch}";
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue