Merge pull request #207020 from Homebrew/bump-qpdf-11.10.0
[Homebrew/homebrew-core.git] / Formula / g / goku.rb
blob6d3a3296f9ee4b46c2b98b59e082dc8b2b8bd494
1 class Goku < Formula
2   desc "HTTP load testing tool"
3   homepage "https://github.com/jcaromiq/goku"
4   url "https://github.com/jcaromiq/goku/archive/refs/tags/v1.1.7.tar.gz"
5   sha256 "799e155c93937ccba830670fa25890d5fe53ceb01737926914d480ce0c39c752"
6   license "MIT"
7   head "https://github.com/jcaromiq/goku.git", branch: "main"
9   bottle do
10     sha256 cellar: :any_skip_relocation, arm64_sequoia: "657aa18fdf805a37325589e45c5e5bc1a25cba05b2177f7f14014f4acd12c525"
11     sha256 cellar: :any_skip_relocation, arm64_sonoma:  "6184dca87b2a076aeb54c91f4550746364ee1f771e63d9f66163b64e0d5ca0da"
12     sha256 cellar: :any_skip_relocation, arm64_ventura: "4013b6e044b064b1b23bf957758f95516f86101c4c57a115a0b63be0f4d6600c"
13     sha256 cellar: :any_skip_relocation, sonoma:        "644ba3fc5c112ba74948d5db227a8e497a03c88a255b1cc90ab4667ce2c56ab3"
14     sha256 cellar: :any_skip_relocation, ventura:       "a04067161f92ebba9334d19183d32badc121e775690d6fb18459406e41fd8c6f"
15     sha256 cellar: :any_skip_relocation, x86_64_linux:  "6e46c4374fbf1f3216b25c3e5b7a78ea69a4c62c80bbf82eefadbc23e28be2db"
16   end
18   depends_on "rust" => :build
20   def install
21     system "cargo", "install", *std_cargo_args
22   end
24   test do
25     output = shell_output("#{bin}/goku --target https://httpbin.org/get")
26     assert_match "kamehameha to https://httpbin.org/get with 1 concurrent clients and 1 total iterations", output
28     assert_match version.to_s, shell_output("#{bin}/goku --version")
29   end
30 end