aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorXu Cheng2014-12-31 15:28:49 +0800
committerMike McQuaid2014-12-31 14:52:18 +0000
commit7fd7ea43edf1a56d4a1997fd6876cbc0cdfcc6ab (patch)
treec2f31dfa0fa75f3650c36be063f5fcbf57d8cd00 /Library
parentbc581c73ec8a6af9d7a1994c2b83cbe227730615 (diff)
downloadhomebrew-7fd7ea43edf1a56d4a1997fd6876cbc0cdfcc6ab.tar.bz2
optipng: add test
Closes #35385. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/optipng.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/Library/Formula/optipng.rb b/Library/Formula/optipng.rb
index d60364e3e..5ffd6edd4 100644
--- a/Library/Formula/optipng.rb
+++ b/Library/Formula/optipng.rb
@@ -14,6 +14,10 @@ class Optipng < Formula
"--mandir=#{man}"
system "make", "install"
end
+
+ test do
+ system "#{bin}/optipng", "-simulate", test_fixtures("test.png")
+ end
end
__END__