libzip: add test

Closes Homebrew/homebrew#35593.
This commit is contained in:
Xu Cheng 2015-01-06 14:21:08 +08:00 committed by Mike McQuaid
parent 9032bbbd06
commit 09a42250db

View file

@ -20,4 +20,12 @@ class Libzip < Formula
"CXXFLAGS=#{ENV.cflags}" "CXXFLAGS=#{ENV.cflags}"
system "make", "install" system "make", "install"
end end
test do
touch "file1"
system "zip", "file1.zip", "file1"
touch "file2"
system "zip", "file2.zip", "file1", "file2"
assert_match /\+.*file2/, shell_output("#{bin}/zipcmp -v file1.zip file2.zip", 1)
end
end end