Skip to content

Commit

Permalink
asnmap 1.1.0
Browse files Browse the repository at this point in the history
asnmap: update test

Signed-off-by: Rui Chen <rui@chenrui.dev>
  • Loading branch information
BrewTestBot authored and chenrui333 committed Mar 6, 2024
1 parent 4da5f73 commit e48edf0
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions Formula/a/asnmap.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
class Asnmap < Formula
desc "Quickly map organization network ranges using ASN information"
homepage "https://github.com/projectdiscovery/asnmap"
url "https://github.com/projectdiscovery/asnmap/archive/refs/tags/v1.0.6.tar.gz"
sha256 "a11b7262134b959347b8bb3e380e8788d1fb07d5a0c31860f7053a96e4134612"
url "https://github.com/projectdiscovery/asnmap/archive/refs/tags/v1.1.0.tar.gz"
sha256 "3372a0d4b4cef1e1754171a0a631c2068c61e6e4aecaf1f3b61ceb1e93a18802"
license "MIT"
head "https://github.com/projectdiscovery/asnmap.git", branch: "main"

Expand All @@ -24,6 +24,11 @@ def install

test do
assert_match version.to_s, shell_output("#{bin}/asnmap -version 2>&1")
assert_match "1.1.1.0/24", shell_output("#{bin}/asnmap -i 1.1.1.1")

# Skip linux CI test as test not working there
return if OS.linux? && ENV["HOMEBREW_GITHUB_ACTIONS"]

# need API key for IP lookup test, thus just run empty binary test
assert_match "no input defined", shell_output("#{bin}/asnmap 2>&1", 1)
end
end

0 comments on commit e48edf0

Please sign in to comment.