diff options
| author | Baptiste Fontaine | 2015-01-14 10:02:19 +0100 |
|---|---|---|
| committer | Mike McQuaid | 2015-01-14 13:00:09 +0000 |
| commit | 46356b8df78b238b0cf0a709fbb3485e0167d967 (patch) | |
| tree | b414feab23e007ada159d6f5370cccd106667e87 /Library/Formula/par.rb | |
| parent | 894d79bbb67c60ab42b21f34cd2c1e7be6987e4f (diff) | |
| download | homebrew-46356b8df78b238b0cf0a709fbb3485e0167d967.tar.bz2 | |
par: test added
Closes #35866.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library/Formula/par.rb')
| -rw-r--r-- | Library/Formula/par.rb | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/Library/Formula/par.rb b/Library/Formula/par.rb index 3243edec9..f8bfb2f59 100644 --- a/Library/Formula/par.rb +++ b/Library/Formula/par.rb @@ -1,11 +1,9 @@ # encoding: UTF-8 -require 'formula' - class Par < Formula - homepage 'http://www.nicemice.net/par/' - url 'http://www.nicemice.net/par/Par152.tar.gz' - version '1.52' - sha1 '4b83d2ec593bb45ee46d4b7c2bfc590e1f4a41a8' + homepage "http://www.nicemice.net/par/" + url "http://www.nicemice.net/par/Par152.tar.gz" + version "1.52" + sha1 "4b83d2ec593bb45ee46d4b7c2bfc590e1f4a41a8" # A patch by Jérôme Pouiller that adds support for multibyte # charsets (like UTF-8), plus Debian packaging. @@ -15,8 +13,13 @@ class Par < Formula end def install - system "make -f protoMakefile" + system "make", "-f", "protoMakefile" bin.install "par" man1.install gzip("par.1") end + + test do + expected = "homebrew\nhomebrew\n" + assert_equal expected, pipe_output("#{bin}/par 10gqr", "homebrew homebrew") + end end |
