24 lines
875 B
Ruby
24 lines
875 B
Ruby
class Tcpkali < Formula
|
|
desc "High performance TCP and WebSocket load generator and sink"
|
|
homepage "https://github.com/machinezone/tcpkali"
|
|
url "https://github.com/machinezone/tcpkali/releases/download/v1.1.1/tcpkali-1.1.1.tar.gz"
|
|
sha256 "a9a15a1703fc4960360a414ee282d821a7b42d4bbba89f9e72a796164ff69598"
|
|
|
|
bottle do
|
|
cellar :any_skip_relocation
|
|
sha256 "f73513ed96b6436085e0941865f0cc4fd2ce1009a1d8770c740e8e97d5173cf1" => :sierra
|
|
sha256 "2d0075b2fca885fb694660a3914362030be255c8e3dfed407bb8ca96c996bbf7" => :el_capitan
|
|
sha256 "71573c4926d086721c028e73d9812475fe3a58bd8313a43ef9c6a54918334760" => :yosemite
|
|
end
|
|
|
|
def install
|
|
system "./configure", "--disable-dependency-tracking",
|
|
"--prefix=#{prefix}"
|
|
system "make", "install"
|
|
end
|
|
|
|
test do
|
|
system "#{bin}/tcpkali", "-l1237", "-T0.5", "127.1:1237"
|
|
end
|
|
end
|