Merge pull request #67489 from mmahut/exiv2

exiv2: enabling tests for real
This commit is contained in:
Marek Mahut 2019-08-26 17:52:24 +02:00 committed by GitHub
commit bfcab98074
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -53,6 +53,8 @@ stdenv.mkDerivation rec {
"doc"
];
doCheck = true;
# Test setup found by inspecting ${src}/.travis/run.sh; problems without cmake.
checkTarget = "tests";
@ -65,6 +67,14 @@ stdenv.mkDerivation rec {
${stdenv.lib.optionalString stdenv.isAarch64 ''
rm -f ../tests/bugfixes/github/test_CVE_2018_12265.py
''}
${stdenv.lib.optionalString stdenv.isDarwin ''
export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:`pwd`/lib
# Removing tests depending on charset conversion
substituteInPlace ../test/Makefile --replace "conversions.sh" ""
rm -f ../tests/bugfixes/redmine/test_issue_460.py
rm -f ../tests/bugfixes/redmine/test_issue_662.py
''}
'';
postCheck = ''