diff --git a/pkgs/tools/networking/ghz/default.nix b/pkgs/tools/networking/ghz/default.nix index d1b2c1b6407e..89253f3fe489 100644 --- a/pkgs/tools/networking/ghz/default.nix +++ b/pkgs/tools/networking/ghz/default.nix @@ -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";