From 46356b8df78b238b0cf0a709fbb3485e0167d967 Mon Sep 17 00:00:00 2001 From: Baptiste Fontaine Date: Wed, 14 Jan 2015 10:02:19 +0100 Subject: par: test added Closes #35866. Signed-off-by: Mike McQuaid --- Library/Formula/par.rb | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) (limited to 'Library') 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 -- cgit v1.2.3