b5819d5bb5
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
16 lines
330 B
Ruby
16 lines
330 B
Ruby
require 'formula'
|
|
|
|
class Wrk < Formula
|
|
homepage 'https://github.com/wg/wrk'
|
|
url 'https://github.com/wg/wrk/archive/2.0.0.tar.gz'
|
|
sha1 'f4d3562ef41b8470e368b542686af3f42618aa67'
|
|
|
|
def install
|
|
system "make"
|
|
bin.install "wrk"
|
|
end
|
|
|
|
test do
|
|
system *%W{#{bin}/wrk -c 1 -r 1 -t 1 http://www.github.com/}
|
|
end
|
|
end
|