2012-03-21 20:05:45 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Wrk < Formula
|
|
|
|
homepage 'https://github.com/wg/wrk'
|
2013-07-08 09:09:23 +00:00
|
|
|
url 'https://github.com/wg/wrk/archive/2.2.2.tar.gz'
|
|
|
|
sha1 'e13ebcea4d88137c788363daafae546b0ccdbf19'
|
2012-03-21 20:05:45 +00:00
|
|
|
|
2013-11-12 15:13:00 +00:00
|
|
|
conflicts_with 'wrk-trello', :because => 'both install `wrk` binaries'
|
|
|
|
|
2012-03-21 20:05:45 +00:00
|
|
|
def install
|
|
|
|
system "make"
|
|
|
|
bin.install "wrk"
|
|
|
|
end
|
|
|
|
|
2013-03-25 18:35:22 +00:00
|
|
|
test do
|
|
|
|
system *%W{#{bin}/wrk -c 1 -r 1 -t 1 http://www.github.com/}
|
2012-03-21 20:05:45 +00:00
|
|
|
end
|
|
|
|
end
|