justbuild: add tests.version test

This commit is contained in:
Gaetan Lepage
2024-10-14 08:14:46 +02:00
committed by Gaétan Lepage
parent 8c4502b9ef
commit a9679031d9
+11
View File
@@ -23,6 +23,9 @@
curl,
libarchive,
testers,
justbuild,
}:
let
stdenv = gccStdenv;
@@ -167,6 +170,14 @@ stdenv.mkDerivation rec {
runHook postInstall
'';
passthru = {
tests.version = testers.testVersion {
package = justbuild;
command = "just version";
version = builtins.replaceStrings [ "." ] [ "," ] version;
};
};
meta = {
broken = stdenv.hostPlatform.isDarwin;
description = "Generic build tool";