lz4: add tests

Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
This commit is contained in:
Sefa Eyeoglu 2024-06-09 21:43:11 +02:00
parent 6772b7822f
commit 216e8c8ce7
No known key found for this signature in database
GPG Key ID: E13DFD4B47127951

View File

@ -1,5 +1,5 @@
{ lib, stdenv, fetchFromGitHub, fetchpatch, cmake
, valgrind
, valgrind, testers
}:
stdenv.mkDerivation (finalAttrs: {
@ -37,6 +37,17 @@ stdenv.mkDerivation (finalAttrs: {
doCheck = false; # tests take a very long time
checkTarget = "test";
passthru.tests = {
version = testers.testVersion {
package = finalAttrs.finalPackage;
version = "v${finalAttrs.version}";
};
pkg-config = testers.hasPkgConfigModules {
package = finalAttrs.finalPackage;
moduleNames = [ "liblz4" ];
};
};
meta = with lib; {
description = "Extremely fast compression algorithm";
longDescription = ''
@ -49,5 +60,6 @@ stdenv.mkDerivation (finalAttrs: {
homepage = "https://lz4.github.io/lz4/";
license = with licenses; [ bsd2 gpl2Plus ];
platforms = platforms.all;
mainProgram = "lz4";
};
})