xgboost: disable TestXGBoostLib when cudaSupport

...because the test suite includes .cu files so it won't run in the
sandbox, isolated from gpu
This commit is contained in:
Someone Serge
2022-05-12 13:12:43 +03:00
parent 13265d3bba
commit c18e8335e8
@@ -43,6 +43,12 @@ stdenv.mkDerivation rec {
inherit doCheck;
# By default, cmake build will run ctests with all checks enabled
# If we're building with cuda, we run ctest manually so that we can skip the GPU tests
checkPhase = lib.optionalString cudaSupport ''
ctest --force-new-ctest-process ${lib.optionalString cudaSupport "-E TestXGBoostLib"}
'';
installPhase = let
libname = "libxgboost${stdenv.hostPlatform.extensions.sharedLibrary}";
in ''