aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/gnu-getopt.rb
diff options
context:
space:
mode:
authorXu Cheng2014-12-28 21:56:02 +0800
committerMike McQuaid2014-12-28 14:18:25 +0000
commitca27acb1cb5a64494c44a0e18b198c5b3ae5bb4f (patch)
tree5df97fb1383c48b563c0b420548965de1b4c131c /Library/Formula/gnu-getopt.rb
parent8849a36a56c007bf0c046c320b7d700b299e2ae6 (diff)
downloadhomebrew-ca27acb1cb5a64494c44a0e18b198c5b3ae5bb4f.tar.bz2
gnu-getopt: add test
Closes #35309. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library/Formula/gnu-getopt.rb')
-rw-r--r--Library/Formula/gnu-getopt.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/Library/Formula/gnu-getopt.rb b/Library/Formula/gnu-getopt.rb
index 9c50eb3e1..e734cde42 100644
--- a/Library/Formula/gnu-getopt.rb
+++ b/Library/Formula/gnu-getopt.rb
@@ -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