aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorXu Cheng2015-01-04 16:32:20 +0800
committerMike McQuaid2015-01-04 10:44:44 +0000
commit661007432b22338e713bec678ea2bfc0399de71e (patch)
tree3d71295c6833972b63f520b6e091784383976329 /Library/Formula
parent5b0604c6c2910681fdf4b2821b8086a3a7878143 (diff)
downloadhomebrew-661007432b22338e713bec678ea2bfc0399de71e.tar.bz2
htop-osx: add test
Closes #35536. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/htop-osx.rb14
1 files changed, 9 insertions, 5 deletions
diff --git a/Library/Formula/htop-osx.rb b/Library/Formula/htop-osx.rb
index 591648db2..9d1bd3af9 100644
--- a/Library/Formula/htop-osx.rb
+++ b/Library/Formula/htop-osx.rb
@@ -1,9 +1,7 @@
-require 'formula'
-
class HtopOsx < Formula
- homepage 'https://github.com/max-horvath/htop-osx'
- url 'https://github.com/max-horvath/htop-osx/archive/0.8.2.2.tar.gz'
- sha1 '17c56fe5efe81cf6b0f4c13a958fa7e4d8591b23'
+ homepage "https://github.com/max-horvath/htop-osx"
+ url "https://github.com/max-horvath/htop-osx/archive/0.8.2.2.tar.gz"
+ sha1 "17c56fe5efe81cf6b0f4c13a958fa7e4d8591b23"
bottle do
revision 1
@@ -35,4 +33,10 @@ class HtopOsx < Formula
You should be certain that you trust any software you grant root privileges.
EOS
end
+
+ test do
+ ENV["TERM"] = "xterm"
+ pipe_output("#{bin}/htop", "q")
+ assert $?.success?
+ end
end