gping: add test

This commit is contained in:
Mrinal Purohit 2022-02-07 14:27:12 +05:30
parent c40dadac17
commit de4b6944e0

View file

@ -21,6 +21,11 @@ rustPlatform.buildRustPackage rec {
buildInputs = lib.optionals stdenv.isDarwin [ libiconv Security ]; buildInputs = lib.optionals stdenv.isDarwin [ libiconv Security ];
doInstallCheck = true;
installCheckPhase = ''
$out/bin/gping --version | grep "${version}"
'';
meta = with lib; { meta = with lib; {
description = "Ping, but with a graph"; description = "Ping, but with a graph";
homepage = "https://github.com/orf/gping"; homepage = "https://github.com/orf/gping";