autopano-sift-c: improve test

This commit is contained in:
Jack Nagel 2013-03-25 13:17:53 -05:00
parent f594a81d22
commit 476b68c46c

View file

@ -13,7 +13,8 @@ class AutopanoSiftC < Formula
system "make install"
end
def test
system "#{bin}/autopano-sift-c | grep 'Version #{version} for hugin 0.7'"
test do
pipe = IO.popen("#{bin}/autopano-sift-c")
/Version #{Regexp.escape(version)}/ === pipe.read
end
end