diff options
| author | Xu Cheng | 2014-12-28 20:24:46 +0800 |
|---|---|---|
| committer | Mike McQuaid | 2014-12-28 14:02:42 +0000 |
| commit | 181177e2de883b8d737c2324f7f092751f78ea8d (patch) | |
| tree | 57b895b8a80ee3ca6fe0b84d3e9bed9cb53a40df /Library/Formula | |
| parent | e3d60629ef8770027339980f72622415be5c656f (diff) | |
| download | homebrew-181177e2de883b8d737c2324f7f092751f78ea8d.tar.bz2 | |
tcping: modernize and add test
Closes #35306.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/tcping.rb | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/Library/Formula/tcping.rb b/Library/Formula/tcping.rb index 344c6abe9..4ffd7a9a0 100644 --- a/Library/Formula/tcping.rb +++ b/Library/Formula/tcping.rb @@ -1,12 +1,14 @@ -require 'formula' - class Tcping < Formula - homepage 'http://www.linuxco.de/tcping/tcping.html' - url 'http://www.linuxco.de/tcping/tcping-1.3.5.tar.gz' - sha1 'ecc5fe7fb2f8e86a1fc2d09651310b26fa922c7b' + homepage "http://www.linuxco.de/tcping/tcping.html" + url "http://www.linuxco.de/tcping/tcping-1.3.5.tar.gz" + sha1 "ecc5fe7fb2f8e86a1fc2d09651310b26fa922c7b" def install system "make" - bin.install 'tcping' + bin.install "tcping" + end + + test do + system "#{bin}/tcping", "www.google.com", "80" end end |
