From a429add28053200b1970dbc34f8d837d9f67cfa0 Mon Sep 17 00:00:00 2001 From: Sergei Zimmerman Date: Sat, 10 May 2025 19:48:58 +0000 Subject: [PATCH] sirius: use ctestCheckHook --- pkgs/by-name/si/sirius/package.nix | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/pkgs/by-name/si/sirius/package.nix b/pkgs/by-name/si/sirius/package.nix index df4a5a6af8a8..a913e2e9c864 100644 --- a/pkgs/by-name/si/sirius/package.nix +++ b/pkgs/by-name/si/sirius/package.nix @@ -6,6 +6,7 @@ pkg-config, mpi, mpiCheckPhaseHook, + ctestCheckHook, gfortran, blas, lapack, @@ -152,16 +153,14 @@ stdenv.mkDerivation rec { # Can not run parallel checks generally as it requires exactly multiples of 4 MPI ranks # Even cpu_serial tests had to be disabled as they require scalapack routines in the sandbox # and run into the same problem as MPI tests - checkPhase = '' - runHook preCheck - - ctest --output-on-failure --label-exclude integration_test - - runHook postCheck - ''; + checkFlags = [ + "--label-exclude" + "integration_test" + ]; nativeCheckInputs = [ mpiCheckPhaseHook + ctestCheckHook ]; meta = with lib; {