shellhub-agent: add tests.version for checking if version matches
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
This commit is contained in:
@@ -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 ];
|
||||
|
||||
Reference in New Issue
Block a user