diff options
| author | Xu Cheng | 2015-01-06 14:21:08 +0800 |
|---|---|---|
| committer | Mike McQuaid | 2015-01-06 08:17:20 +0000 |
| commit | 602ce694817bf3a0e845bbae7657eccbab0d1542 (patch) | |
| tree | 757381c932061de82fdaf5bf625e2680932be8ec /Library | |
| parent | 804514cd130133738d31765997734f16ee1eb6e7 (diff) | |
| download | homebrew-602ce694817bf3a0e845bbae7657eccbab0d1542.tar.bz2 | |
libzip: add test
Closes #35593.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/libzip.rb | 8 |
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 |
