From 9b4e5a9325c1887cbd1fff5f50e59a5b3b2abc68 Mon Sep 17 00:00:00 2001 From: Marek Mahut Date: Mon, 26 Aug 2019 12:02:45 +0200 Subject: [PATCH 1/2] exiv2: enabling tests for real Fixes #67453 --- pkgs/development/libraries/exiv2/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/development/libraries/exiv2/default.nix b/pkgs/development/libraries/exiv2/default.nix index 85889cf8af1c..2dc435fe2574 100644 --- a/pkgs/development/libraries/exiv2/default.nix +++ b/pkgs/development/libraries/exiv2/default.nix @@ -53,6 +53,8 @@ stdenv.mkDerivation rec { "doc" ]; + doCheck = true; + # Test setup found by inspecting ${src}/.travis/run.sh; problems without cmake. checkTarget = "tests"; From 4ee4bb98729412b4741e1f5309ec76ff6878a3cc Mon Sep 17 00:00:00 2001 From: Marek Mahut Date: Mon, 26 Aug 2019 15:31:31 +0200 Subject: [PATCH 2/2] exiv2: adding DYLD_LIBRARY_PATH= for darwin tests --- pkgs/development/libraries/exiv2/default.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pkgs/development/libraries/exiv2/default.nix b/pkgs/development/libraries/exiv2/default.nix index 2dc435fe2574..ec6f07f0953a 100644 --- a/pkgs/development/libraries/exiv2/default.nix +++ b/pkgs/development/libraries/exiv2/default.nix @@ -67,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 = ''