diff --git a/pkgs/by-name/or/or-tools/package.nix b/pkgs/by-name/or/or-tools/package.nix index abe374ea642f..90754354a478 100644 --- a/pkgs/by-name/or/or-tools/package.nix +++ b/pkgs/by-name/or/or-tools/package.nix @@ -206,6 +206,12 @@ stdenv.mkDerivation (finalAttrs: { export LD_LIBRARY_PATH=$LD_LIBRARY_PATH''${LD_LIBRARY_PATH:+:}$PWD/lib ''; + checkPhase = '' + runHook preCheck + ctest --output-on-failure -E "python_math_opt_.*" + runHook postCheck + ''; + # This extra configure step prevents the installer from littering # $out/bin with sample programs that only really function as tests, # and disables the upstream installation of a zipped Python egg that