gnu-getopt: add test

Closes Homebrew/homebrew#35309.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
Xu Cheng 2014-12-28 21:56:02 +08:00 committed by Mike McQuaid
parent 0cbe08f429
commit 3ffcec85a5

View file

@ -22,4 +22,8 @@ class GnuGetopt < Formula
end
system "make", "prefix=#{prefix}", "mandir=#{man}", "install"
end
test do
system "#{bin}/getopt", "-o", "--test"
end
end