about summary refs log tree commit diff
path: root/pkgs/applications/networking/shellhub-agent
diff options
context:
space:
mode:
authorOtavio Salvador <otavio@ossystems.com.br>2023-05-02 14:33:35 -0300
committerOtavio Salvador <otavio@ossystems.com.br>2023-05-02 14:33:35 -0300
commit28b07a359bed825b96aa0e9aa6c97e5747682b47 (patch)
tree98c80f9aace24fdf5fedfe35e171fbb517f0427d /pkgs/applications/networking/shellhub-agent
parentd400dff7f4cfc036049bd69ee4d0602e2a99011b (diff)
shellhub-agent: add tests.version for checking if version matches
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Diffstat (limited to 'pkgs/applications/networking/shellhub-agent')
-rw-r--r--pkgs/applications/networking/shellhub-agent/default.nix8
1 files changed, 8 insertions, 0 deletions
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 ];