ghz: add version tests
This commit is contained in:
parent
2768f7d4f0
commit
d3812c8307
1 changed files with 11 additions and 1 deletions
|
@ -1,4 +1,4 @@
|
|||
{ lib, buildGoModule, fetchFromGitHub }:
|
||||
{ lib, buildGoModule, fetchFromGitHub, testers, ghz }:
|
||||
|
||||
buildGoModule rec {
|
||||
pname = "ghz";
|
||||
|
@ -21,6 +21,16 @@ buildGoModule rec {
|
|||
"-X=main.version=${version}"
|
||||
];
|
||||
|
||||
passthru.tests = {
|
||||
version = testers.testVersion {
|
||||
package = ghz;
|
||||
};
|
||||
web-version = testers.testVersion {
|
||||
package = ghz;
|
||||
command = "ghz-web -v";
|
||||
};
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
description = "Simple gRPC benchmarking and load testing tool";
|
||||
homepage = "https://ghz.sh";
|
||||
|
|
Loading…
Reference in a new issue