homebrew-core/Formula/tcpkali.rb
2016-09-03 01:28:13 -07:00

25 lines
971 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/v0.9/tcpkali-0.9.tar.gz"
sha256 "4acb38bd1a2421f247afbd07e67d47aaa8bb848f92e7badd2cd581022406d855"
bottle do
cellar :any_skip_relocation
sha256 "2ebc6fd13a75a2b95bde049906d1cd3af1b406f256ad7490a113538d5228892d" => :el_capitan
sha256 "d37c5e39ec28c5f9a73e3ae023418f0009e9a4c59a82dffc4fd936259db75853" => :yosemite
sha256 "7dbf2ecc4c3b259693ff338cb6f8db6f4025afde3cc93bcf36ad8419c5ade959" => :mavericks
end
def install
system "./configure", "--disable-debug",
"--disable-dependency-tracking",
"--disable-silent-rules",
"--prefix=#{prefix}"
system "make", "install"
end
test do
system "#{bin}/tcpkali", "-l1237", "-T0.5", "127.1:1237"
end
end