pdal: add pkg-config and version tests
This commit is contained in:
parent
51ae8643e4
commit
e6ba94f191
1 changed files with 8 additions and 0 deletions
|
@ -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" ];
|
||||
};
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue