eccodes: use ctestCheckHook

This commit is contained in:
Sergei Zimmerman
2025-05-10 20:13:43 +00:00
parent 5eb77369fb
commit 98968dae5c

View File

@@ -9,6 +9,7 @@
libpng,
gfortran,
perl,
ctestCheckHook,
enablePython ? false,
pythonPackages,
enablePosixThreads ? false,
@@ -65,11 +66,12 @@ stdenv.mkDerivation rec {
];
doCheck = true;
# Only do tests that don't require downloading 120MB of testdata
checkPhase = ''
ctest -R "eccodes_t_(definitions|calendar|unit_tests|md5|uerra|grib_2nd_order_numValues|julian)" -VV
'';
nativeCheckInputs = [ ctestCheckHook ];
checkFlags = [
"-R"
# Only do tests that don't require downloading 120MB of testdata
"eccodes_t_(definitions|calendar|unit_tests|md5|uerra|grib_2nd_order_numValues|julian)"
];
meta = with lib; {
homepage = "https://confluence.ecmwf.int/display/ECC/";