diff options
| author | Baptiste Fontaine | 2015-03-12 17:43:37 +0100 |
|---|---|---|
| committer | Mike McQuaid | 2015-03-12 19:43:57 +0000 |
| commit | 5ae725a4c8c67d59197cac9de0143ce52a7c4e2e (patch) | |
| tree | bb2de901f6d0486e35b66a74c9489039f115d5cf /Library/Formula | |
| parent | af6521d34259da939dfa4ebe09d900248f9442a2 (diff) | |
| download | homebrew-5ae725a4c8c67d59197cac9de0143ce52a7c4e2e.tar.bz2 | |
ptunnel: test added
Closes #37649.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/ptunnel.rb | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/Library/Formula/ptunnel.rb b/Library/Formula/ptunnel.rb index dead7ea3a..950512038 100644 --- a/Library/Formula/ptunnel.rb +++ b/Library/Formula/ptunnel.rb @@ -1,14 +1,10 @@ -require 'formula' - class Ptunnel < Formula - homepage 'http://www.cs.uit.no/~daniels/PingTunnel/' - url 'http://www.cs.uit.no/~daniels/PingTunnel/PingTunnel-0.72.tar.gz' - sha1 'd5d874ec7b4f68d2307cacc83a1c408aeb4206a5' + homepage "http://www.cs.uit.no/~daniels/PingTunnel/" + url "http://www.cs.uit.no/~daniels/PingTunnel/PingTunnel-0.72.tar.gz" + sha256 "b318f7aa7d88918b6269d054a7e26f04f97d8870f47bd49a76cb2c99c73407a4" def install - system "make" - bin.install "ptunnel" - man8.install "ptunnel.8" + system "make", "install", "prefix=#{prefix}" end def caveats; <<-EOS.undent @@ -18,4 +14,8 @@ class Ptunnel < Formula but this is not recommended. See http://www.cs.uit.no/~daniels/PingTunnel/ for details. EOS end + + test do + assert_match "v #{version}", shell_output("#{bin}/ptunnel -h", 1) + end end |
