Unverified Commit a122884c authored by Someone Serge's avatar Someone Serge
Browse files

opencv4: cuda: add a libstdc++ integration test

parent edbe9ad5
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -496,6 +496,9 @@ stdenv.mkDerivation {
        inherit enableGStreamer enableGtk2 enableGtk3 runAccuracyTests runPerformanceTests testDataSrc;
        inherit opencv4;
      };
    }
    // lib.optionalAttrs (enableCuda) {
      no-libstdcxx-errors = callPackage ./libstdcxx-test.nix { };
    };
  } // lib.optionalAttrs enablePython { pythonPath = [ ]; };

+17 −0
Original line number Diff line number Diff line
{ 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
''