From 28b07a359bed825b96aa0e9aa6c97e5747682b47 Mon Sep 17 00:00:00 2001 From: Otavio Salvador Date: Tue, 2 May 2023 14:33:35 -0300 Subject: shellhub-agent: add tests.version for checking if version matches Signed-off-by: Otavio Salvador --- pkgs/applications/networking/shellhub-agent/default.nix | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'pkgs/applications/networking/shellhub-agent') diff --git a/pkgs/applications/networking/shellhub-agent/default.nix b/pkgs/applications/networking/shellhub-agent/default.nix index 90dca7c9f7164..3e3a5eee5f89a 100644 --- a/pkgs/applications/networking/shellhub-agent/default.nix +++ b/pkgs/applications/networking/shellhub-agent/default.nix @@ -5,6 +5,8 @@ , makeWrapper , openssh , libxcrypt +, testers +, shellhub-agent }: buildGo120Module rec { @@ -29,6 +31,12 @@ buildGo120Module rec { rev-prefix = "v"; ignoredVersions = ".(rc|beta).*"; }; + + tests.version = testers.testVersion { + package = shellhub-agent; + command = "agent --version"; + version = "v${version}"; + }; }; nativeBuildInputs = [ makeWrapper ]; -- cgit 1.4.1