psgrep: add test

Closes Homebrew/homebrew#26552.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
master
Mike Naberezny 2014-02-09 11:01:33 -08:00 committed by Mike McQuaid
parent c7718a2170
commit b2b37c6ee0
1 changed files with 6 additions and 0 deletions

View File

@ -11,4 +11,10 @@ class Psgrep < Formula
bin.install "psgrep"
man1.install "psgrep.1"
end
test do
output = `#{bin}/psgrep #{Process.pid}`
assert output.include?($0)
assert_equal 0, $?.exitstatus
end
end