homebrew-core/Formula/tcpkali.rb

35 lines
2.0 KiB
Ruby

class Tcpkali < Formula
desc "High performance TCP and WebSocket load generator and sink"
homepage "https://github.com/satori-com/tcpkali"
url "https://github.com/satori-com/tcpkali/releases/download/v1.1.1/tcpkali-1.1.1.tar.gz"
sha256 "a9a15a1703fc4960360a414ee282d821a7b42d4bbba89f9e72a796164ff69598"
license "BSD-2-Clause"
bottle do
sha256 cellar: :any_skip_relocation, arm64_ventura: "a4e360c9b9f4e392e429075847cf3d4f02d0318668d19d5745a7f0108c381330"
sha256 cellar: :any_skip_relocation, arm64_monterey: "1da7a44e7f3a40440cbb5ac8fa5fde5156c22125080daf5c6afc884b3f8dc264"
sha256 cellar: :any_skip_relocation, arm64_big_sur: "7e7b45ed05cf7d7ad1dde75394b670e192c217cdfe98012e8da514cf6717d64a"
sha256 cellar: :any_skip_relocation, ventura: "e3a2e0de9e4081e5f2720aec73737040ad1449b1d69d4ce7fbd1cad1940f4c11"
sha256 cellar: :any_skip_relocation, monterey: "4fb40f82ea3e44a7903dea3e1ef6a950833368346a5810a91b393b7537ec8bd6"
sha256 cellar: :any_skip_relocation, big_sur: "6496fe2ab336a75fecc905017ea8886c67dff3e13139b37474e6f500eb98e0fa"
sha256 cellar: :any_skip_relocation, catalina: "01bd403a6b94827f4670877d1e36ee4c439f708d84d364584e5b1538837e72d0"
sha256 cellar: :any_skip_relocation, mojave: "3e9bbcb12b289d1dff3c2355664208ee0a65cea032ebe1dc0d6d1346f67c1a2f"
sha256 cellar: :any_skip_relocation, high_sierra: "b82b2ea3a3d17d3fd464a5e887c9cce14dce8a82bbcb350df5f7bd321893bfdb"
sha256 cellar: :any_skip_relocation, sierra: "f73513ed96b6436085e0941865f0cc4fd2ce1009a1d8770c740e8e97d5173cf1"
sha256 cellar: :any_skip_relocation, el_capitan: "2d0075b2fca885fb694660a3914362030be255c8e3dfed407bb8ca96c996bbf7"
sha256 cellar: :any_skip_relocation, x86_64_linux: "ae1230bcf9879d1d8f09d5e0a3b80c9baf7f59c2bfa77a296a06ed6a821d5be7"
end
uses_from_macos "bison" => :build
uses_from_macos "ncurses"
def install
system "./configure", *std_configure_args
system "make", "install"
end
test do
system "#{bin}/tcpkali", "-l1237", "-T0.5", "127.1:1237"
end
end