ssm-agent: add passthru.tests.version

This commit is contained in:
Anthony Roussel
2023-09-28 20:28:34 +02:00
parent 305ad04a9e
commit bf08e56032
@@ -9,6 +9,8 @@
, util-linux
, bashInteractive
, overrideEtc ? true
, testers
, ssm-agent
}:
let
@@ -129,6 +131,11 @@ buildGoPackage rec {
wrapProgram $out/bin/amazon-ssm-agent --prefix PATH : ${bashInteractive}/bin
'';
passthru.tests.version = testers.testVersion {
package = ssm-agent;
command = "amazon-ssm-agent --version";
};
meta = with lib; {
description = "Agent to enable remote management of your Amazon EC2 instance configuration";
homepage = "https://github.com/aws/amazon-ssm-agent";