From 661007432b22338e713bec678ea2bfc0399de71e Mon Sep 17 00:00:00 2001 From: Xu Cheng Date: Sun, 4 Jan 2015 16:32:20 +0800 Subject: htop-osx: add test Closes #35536. Signed-off-by: Mike McQuaid --- Library/Formula/htop-osx.rb | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'Library/Formula') 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 -- cgit v1.2.3