mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-02 13:00:23 +00:00
opencv: expose runAccuracyTests, runPerformanceTests booleans
This commit is contained in:
@@ -80,6 +80,9 @@
|
||||
, doxygen
|
||||
, graphviz-nox
|
||||
|
||||
, runAccuracyTests ? true
|
||||
, runPerformanceTests ? false
|
||||
|
||||
, AVFoundation
|
||||
, Cocoa
|
||||
, VideoDecodeAcceleration
|
||||
@@ -234,8 +237,6 @@ let
|
||||
|
||||
opencvFlag = name: enabled: "-DWITH_${name}=${printEnabled enabled}";
|
||||
|
||||
runAccuracyTests = true;
|
||||
runPerformanceTests = false;
|
||||
printEnabled = enabled: if enabled then "ON" else "OFF";
|
||||
withOpenblas = (enableBlas && blas.provider.pname == "openblas");
|
||||
#multithreaded openblas conflicts with opencv multithreading, which manifest itself in hung tests
|
||||
@@ -254,6 +255,7 @@ effectiveStdenv.mkDerivation {
|
||||
outputs = [
|
||||
"out"
|
||||
"cxxdev"
|
||||
] ++ lib.optionals (runAccuracyTests || runPerformanceTests) [
|
||||
"package_tests"
|
||||
];
|
||||
cudaPropagateToOutput = "cxxdev";
|
||||
|
||||
Reference in New Issue
Block a user