vigra: run upstream tests as tests.check

This commit is contained in:
Yueh-Shun Li
2025-01-23 20:22:40 +08:00
parent 2522475db0
commit 4d356df875
@@ -41,6 +41,11 @@ stdenv.mkDerivation (finalAttrs: {
python python
]; ];
postPatch = ''
chmod +x config/run_test.sh.in
patchShebangs --build config/run_test.sh.in
'';
cmakeFlags = cmakeFlags =
[ [
"-DWITH_OPENEXR=1" "-DWITH_OPENEXR=1"
@@ -53,6 +58,14 @@ stdenv.mkDerivation (finalAttrs: {
enableParallelBuilding = true; enableParallelBuilding = true;
passthru = {
tests = {
check = finalAttrs.finalPackage.overrideAttrs (previousAttrs: {
doCheck = stdenv.buildPlatform.canExecute stdenv.hostPlatform;
});
};
};
meta = with lib; { meta = with lib; {
description = "Novel computer vision C++ library with customizable algorithms and data structures"; description = "Novel computer vision C++ library with customizable algorithms and data structures";
mainProgram = "vigra-config"; mainProgram = "vigra-config";