pdal: migrate to ctestCheckHook

This commit is contained in:
Sergei Zimmerman 2025-04-26 10:37:54 +00:00
parent 6534a099a0
commit 091041cedd
No known key found for this signature in database
GPG key ID: A9B0B557CA632325

View file

@ -2,6 +2,7 @@
lib,
stdenv,
callPackage,
ctestCheckHook,
fetchFromGitHub,
testers,
@ -92,6 +93,9 @@ stdenv.mkDerivation (finalAttrs: {
];
doCheck = true;
# tests are flaky and they seem to fail less often when they don't run in
# parallel
enableParallelChecking = false;
disabledTests = [
# Tests failing due to TileDB library implementation, disabled also
@ -116,16 +120,9 @@ stdenv.mkDerivation (finalAttrs: {
nativeCheckInputs = [
gdal # gdalinfo
ctestCheckHook
];
checkPhase = ''
runHook preCheck
# tests are flaky and they seem to fail less often when they don't run in
# parallel
ctest -j 1 --output-on-failure -E '^${lib.concatStringsSep "|" finalAttrs.disabledTests}$'
runHook postCheck
'';
postInstall = ''
patchShebangs --update --build $out/bin/pdal-config
'';