From afeb64c68421035065ff7077fce83f5a96484d2c Mon Sep 17 00:00:00 2001 From: Dominyk Tiller Date: Wed, 23 Sep 2015 22:40:38 +0100 Subject: [PATCH] netpbm: fix audit --- Formula/netpbm.rb | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Formula/netpbm.rb b/Formula/netpbm.rb index 6c72a409b8..fd6561a92e 100644 --- a/Formula/netpbm.rb +++ b/Formula/netpbm.rb @@ -26,7 +26,7 @@ class Netpbm < Formula def install ENV.universal_binary if build.universal? - system "cp", "config.mk.in", "config.mk" + cp "config.mk.in", "config.mk" inreplace "config.mk" do |s| s.remove_make_var! "CC" @@ -63,4 +63,10 @@ class Netpbm < Formula (bin/"doc.url").unlink end + + test do + system ("#{bin}/pngtopam #{test_fixtures("test.png")} -alphapam >> test.pam") + system "#{bin}/pamdice", "test.pam", "-outstem", "#{testpath}/testing" + assert File.exist?("testing_0_0.") + end end