about summary refs log tree commit diff
path: root/pkgs/applications/networking/cluster/sonobuoy
diff options
context:
space:
mode:
authorPaul Meyer <49727155+katexochen@users.noreply.github.com>2023-12-10 10:36:10 +0100
committerPaul Meyer <49727155+katexochen@users.noreply.github.com>2023-12-29 20:01:18 +0100
commitc461d39b6d8c99413b6972c236c8326955c5079a (patch)
tree67b9334824dc9a9ebf13cbf4a3348fe4c0d8c559 /pkgs/applications/networking/cluster/sonobuoy
parent5b9fbcd1b2ea338bdf332bbcc044719f49ea9f0b (diff)
sonobuoy: add version test
Diffstat (limited to 'pkgs/applications/networking/cluster/sonobuoy')
-rw-r--r--pkgs/applications/networking/cluster/sonobuoy/default.nix7
1 files changed, 6 insertions, 1 deletions
diff --git a/pkgs/applications/networking/cluster/sonobuoy/default.nix b/pkgs/applications/networking/cluster/sonobuoy/default.nix
index 88387c891791b..a62efd6833fb2 100644
--- a/pkgs/applications/networking/cluster/sonobuoy/default.nix
+++ b/pkgs/applications/networking/cluster/sonobuoy/default.nix
@@ -1,4 +1,4 @@
-{ lib, buildGoModule, fetchFromGitHub }:
+{ lib, buildGoModule, fetchFromGitHub, testers, sonobuoy }:
 
 # SHA of ${version} for the tool's help output. Unfortunately this is needed in build flags.
 # The update script can update this automatically, the comment is used to find the line.
@@ -30,6 +30,11 @@ buildGoModule rec {
 
   passthru = {
     updateScript = ./update.sh;
+    tests.version = testers.testVersion {
+      package = sonobuoy;
+      command = "sonobuoy version";
+      version = "v${version}";
+    };
   };
 
   meta = with lib; {