aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/libzip.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/Library/Formula/libzip.rb b/Library/Formula/libzip.rb
index 41d8a75b7..a88243e9e 100644
--- a/Library/Formula/libzip.rb
+++ b/Library/Formula/libzip.rb
@@ -20,4 +20,12 @@ class Libzip < Formula
"CXXFLAGS=#{ENV.cflags}"
system "make", "install"
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