mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-14 21:49:34 +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,
|
lib,
|
||||||
stdenv,
|
stdenv,
|
||||||
callPackage,
|
callPackage,
|
||||||
|
ctestCheckHook,
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
testers,
|
testers,
|
||||||
|
|
||||||
|
@ -92,6 +93,9 @@ stdenv.mkDerivation (finalAttrs: {
|
||||||
];
|
];
|
||||||
|
|
||||||
doCheck = true;
|
doCheck = true;
|
||||||
|
# tests are flaky and they seem to fail less often when they don't run in
|
||||||
|
# parallel
|
||||||
|
enableParallelChecking = false;
|
||||||
|
|
||||||
disabledTests = [
|
disabledTests = [
|
||||||
# Tests failing due to TileDB library implementation, disabled also
|
# Tests failing due to TileDB library implementation, disabled also
|
||||||
|
@ -116,16 +120,9 @@ stdenv.mkDerivation (finalAttrs: {
|
||||||
|
|
||||||
nativeCheckInputs = [
|
nativeCheckInputs = [
|
||||||
gdal # gdalinfo
|
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 = ''
|
postInstall = ''
|
||||||
patchShebangs --update --build $out/bin/pdal-config
|
patchShebangs --update --build $out/bin/pdal-config
|
||||||
'';
|
'';
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue