-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcats.rb
53 lines (48 loc) · 2.53 KB
/
cats.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# Documentation: https://docs.brew.sh/Formula-Cookbook
# https://rubydoc.brew.sh/Formula
# PLEASE REMOVE ALL GENERATED COMMENTS BEFORE SUBMITTING YOUR PULL REQUEST!
class Cats < Formula
desc "CATS is a REST APIs fuzzer and negative testing tool for OpenAPI endpoints. CATS automatically generates, runs and reports tests with minimum configuration and no coding effort. Tests are self-healing and do not require maintenance."
homepage "https://endava.github.io/cats/"
if OS.mac?
if Hardware::CPU.intel?
url "https://github.com/Endava/cats/releases/download/cats-13.1.0/cats_macos_amd64_13.1.0.tar.gz"
sha256 "31e0108a3f8cf018e7513afff73120810fee77ee457db29910c08027e90384c8"
elsif Hardware::CPU.arm?
url "https://github.com/Endava/cats/releases/download/cats-13.1.0/cats_macos_arm64_13.1.0.tar.gz"
sha256 "b8884d535ca9d3ff261f077b5cf3f5866a6b245aba317b021dce0623bf9a2146"
end
elsif OS.linux?
if Hardware::CPU.intel?
url "https://github.com/Endava/cats/releases/download/cats-13.1.0/cats_linux_amd64_13.1.0.tar.gz"
sha256 "a55514b5b1e2dfc6a8e7a70e3f7ff7a2cd39d8531a99a2112413d6262af9828a"
elsif Hardware::CPU.arm?
url "https://github.com/Endava/cats/releases/download/cats-13.1.0/cats_linux_arm64_13.1.0.tar.gz"
sha256 "0019dfc4b32d63c1392aa264aed2253c1e0c2fb09216f8e2cc269bbfb8bb49b5"
end
else
odie "Please use the uberjar version: https://github.com/Endava/cats/releases/download/cats-13.1.0/cats_uberjar_13.1.0.tar.gz"
end
license "Apache-2.0"
# depends_on "cmake" => :build
def install
# ENV.deparallelize # if your formula fails when building in parallel
# Remove unrecognized options if warned by configure
# https://rubydoc.brew.sh/Formula.html#std_configure_args-instance_method
# system "./configure", *std_configure_args, "--disable-silent-rules"
# system "cmake", "-S", ".", "-B", "build", *std_cmake_args
bin.install 'cats'
end
test do
# `test do` will create, run in and delete a temporary directory.
#
# This test will fail and we won't accept that! For Homebrew/homebrew-core
# this will need to be a test that verifies the functionality of the
# software. Run the test with `brew test cats`. Options passed
# to `brew install` such as `--HEAD` also need to be provided to `brew test`.
#
# The installed folder is not in the path, so use the entire path to any
# executables being tested: `system "#{bin}/program", "do", "something"`.
system "false"
end
end