mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-12 04:35:41 +03:00
pdal: migrate to ctestCheckHook
This commit is contained in:
parent
6534a099a0
commit
091041cedd
1 changed files with 5 additions and 8 deletions
|
@ -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
|
||||
'';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue