karmor: add version test

This commit is contained in:
figsoda
2023-06-25 11:38:15 -04:00
parent 8ddf313977
commit 40d36f54d3
@@ -1,4 +1,10 @@
{ buildGoModule, fetchFromGitHub, installShellFiles, lib }:
{ lib
, buildGoModule
, fetchFromGitHub
, installShellFiles
, testers
, karmor
}:
buildGoModule rec {
pname = "karmor";
@@ -33,6 +39,13 @@ buildGoModule rec {
--zsh <($out/bin/karmor completion zsh)
'';
passthru.tests = {
version = testers.testVersion {
package = karmor;
command = "karmor version || true";
};
};
meta = with lib; {
description = "A client tool to help manage KubeArmor";
homepage = "https://kubearmor.io";