aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorTed Pennings2014-01-14 23:25:49 -0500
committerMike McQuaid2014-01-15 09:08:41 +0000
commit13f99ce9efd828cde0eb5d7c335c756bc858b14c (patch)
tree2dedcad8055e44c94aa1af42cb2a7b9bacd3c57d /Library
parent2e54e17455ea1c0edc35e7c4c68eec8af2c94dd1 (diff)
downloadhomebrew-13f99ce9efd828cde0eb5d7c335c756bc858b14c.tar.bz2
nmap: test - check google.com is open on 80,443
Closes #25914. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/nmap.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/Library/Formula/nmap.rb b/Library/Formula/nmap.rb
index ca4cbbcec..ab9152ccc 100644
--- a/Library/Formula/nmap.rb
+++ b/Library/Formula/nmap.rb
@@ -32,4 +32,8 @@ class Nmap < Formula
system "make" # separate steps required otherwise the build fails
system "make install"
end
+
+ test do
+ system "#{bin}/nmap", '-p80,443', 'google.com'
+ end
end