- add a test
- remove upstreamed patch

Closes #3585.

Signed-off-by: ilovezfs <ilovezfs@icloud.com>
This commit is contained in:
ilovezfs 2016-08-03 15:52:44 -07:00
parent 22bddd9c6d
commit be9808e865

View file

@ -1,20 +1,10 @@
class Mtr < Formula
desc "'traceroute' and 'ping' in a single tool"
homepage "https://www.bitwizard.nl/mtr/"
url "https://github.com/traviscross/mtr/archive/v0.87.tar.gz"
sha256 "ac177953e7c834d5326fc52d63377b6d0b42d05db8017556390629b87e44e183"
head "https://github.com/traviscross/mtr.git"
stable do
url "https://github.com/traviscross/mtr/archive/v0.86.tar.gz"
sha256 "7912f049f9506748913e2866068b7f95b11a4e0a855322120b456c46ac9eb763"
# Fix an issue where default shell colors were overridden by mtr.
# https://github.com/Homebrew/homebrew/issues/43862
patch do
url "https://github.com/traviscross/mtr/commit/63a1f1493bfbaf7e55eb7e20b3791fc8b14cf92d.patch"
sha256 "67d682b29fca49d703f48bb2844e1c0e4b4635d0645d139a13352d9575336194"
end
end
bottle do
cellar :any_skip_relocation
revision 1
@ -48,4 +38,9 @@ class Mtr < Formula
You should be certain that you trust any software you grant root privileges.
EOS
end
test do
output = shell_output("#{sbin}/mtr --help 2>&1", 1)
assert_equal "mtr: unable to get raw sockets.", output.chomp
end
end