mozjpeg: use test fixture image.

This commit is contained in:
Mike McQuaid 2014-07-28 19:30:49 +02:00
parent 2a370695f6
commit 70403f9f2b

View file

@ -30,9 +30,10 @@ class Mozjpeg < Formula
end
test do
system "#{bin}/jpegtran", "-crop", "500x500+200+500",
test_jpg = HOMEBREW_LIBRARY/"Homebrew/test/fixtures/test.jpg"
system "#{bin}/jpegtran", "-crop", "1x1",
"-transpose", "-optimize",
"-outfile", "test.jpg",
"/System/Library/CoreServices/DefaultDesktop.jpg"
"-outfile", "out.jpg",
test_jpg
end
end