From 13f99ce9efd828cde0eb5d7c335c756bc858b14c Mon Sep 17 00:00:00 2001 From: Ted Pennings Date: Tue, 14 Jan 2014 23:25:49 -0500 Subject: nmap: test - check google.com is open on 80,443 Closes #25914. Signed-off-by: Mike McQuaid --- Library/Formula/nmap.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Library/Formula') 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 -- cgit v1.2.3