opencv4: cuda: add a libstdc++ integration test

This commit is contained in:
Someone Serge 2023-11-02 18:18:35 +00:00
parent edbe9ad5e0
commit a122884cb3
No known key found for this signature in database
GPG Key ID: 7B0E3B1390D61DA4
2 changed files with 21 additions and 1 deletions

View File

@ -495,8 +495,11 @@ stdenv.mkDerivation {
opencv4-tests = callPackage ./tests.nix {
inherit enableGStreamer enableGtk2 enableGtk3 runAccuracyTests runPerformanceTests testDataSrc;
inherit opencv4;
};
};
}
// lib.optionalAttrs (enableCuda) {
no-libstdcxx-errors = callPackage ./libstdcxx-test.nix { };
};
} // lib.optionalAttrs enablePython { pythonPath = [ ]; };
meta = with lib; {

View File

@ -0,0 +1,17 @@
{ python3Packages, runCommand }:
runCommand "${python3Packages.opencv4.pname}-libstdcxx-test"
{
nativeBuildInputs = [
(python3Packages.python.withPackages (ps: with ps; [
(opencv4.override { enableCuda = true; })
scikit-image
]))
];
} ''
python << EOF
import cv2
from skimage.transform import pyramid_reduce
EOF
touch $out
''