diff options
author | Tom Wieczorek <tom@bibbu.net> | 2024-05-10 12:07:35 +0200 |
---|---|---|
committer | Tom Wieczorek <tom@bibbu.net> | 2024-05-10 12:07:35 +0200 |
commit | edba8f65a2f9877796d089a65360bd11ad50263f (patch) | |
tree | 1277faa86bc64d5357c18a0ad5a16e1c18b261ab /pkgs/applications/networking/cluster | |
parent | 45cc392ca974955eba404414a5cf7200280c7d3c (diff) |
k0sctl: add version test
Signed-off-by: Tom Wieczorek <tom@bibbu.net>
Diffstat (limited to 'pkgs/applications/networking/cluster')
-rw-r--r-- | pkgs/applications/networking/cluster/k0sctl/default.nix | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/pkgs/applications/networking/cluster/k0sctl/default.nix b/pkgs/applications/networking/cluster/k0sctl/default.nix index 04d03e2e8ea64..ff8957db2b2cb 100644 --- a/pkgs/applications/networking/cluster/k0sctl/default.nix +++ b/pkgs/applications/networking/cluster/k0sctl/default.nix @@ -2,6 +2,8 @@ , buildGoModule , fetchFromGitHub , installShellFiles +, testers +, k0sctl }: buildGoModule rec { @@ -34,6 +36,13 @@ buildGoModule rec { done ''; + passthru.tests.version = testers.testVersion { + package = k0sctl; + command = "k0sctl version"; + # See https://github.com/carlmjohnson/versioninfo/discussions/12 + version = "version: (devel)\ncommit: v${version}\n"; + }; + meta = with lib; { description = "A bootstrapping and management tool for k0s clusters."; homepage = "https://k0sproject.io/"; |