aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/wrk.rb
blob: b7a8ef038063b6dd7fb7f0264b94d08924569df4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
require 'formula'

class Wrk < Formula
  homepage 'https://github.com/wg/wrk'
  url 'https://github.com/wg/wrk/archive/3.0.3.tar.gz'
  sha1 '097168282266414a672c77f90761d786dec323f1'
  head 'https://github.com/wg/wrk.git'

  conflicts_with 'wrk-trello', :because => 'both install `wrk` binaries'

  def install
    ENV.j1
    system "make"
    bin.install "wrk"
  end

  test do
    system *%W{#{bin}/wrk -c 1 -r 1 -t 1 http://www.github.com/}
  end
end