pdal: add pkg-config and version tests

This commit is contained in:
Ivan Mincik 2023-12-19 15:32:11 +01:00
parent 51ae8643e4
commit e6ba94f191

View file

@ -2,6 +2,7 @@
, stdenv
, callPackage
, fetchFromGitHub
, testers
, enableE57 ? lib.meta.availableOn stdenv.hostPlatform libe57format
@ -111,7 +112,13 @@ stdenv.mkDerivation (finalAttrs: {
'';
passthru.tests = {
version = testers.testVersion {
package = finalAttrs.finalPackage;
command = "pdal --version";
version = "pdal ${finalAttrs.finalPackage.version}";
};
pdal = callPackage ./tests.nix { pdal = finalAttrs.finalPackage; };
pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage;
};
meta = with lib; {
@ -120,5 +127,6 @@ stdenv.mkDerivation (finalAttrs: {
license = licenses.bsd3;
maintainers = teams.geospatial.members;
platforms = platforms.all;
pkgConfigModules = [ "pdal" ];
};
})