psgrep: add test
Closes Homebrew/homebrew#26552. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
parent
c7718a2170
commit
b2b37c6ee0
1 changed files with 6 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue