pipemeter: test added
Closes Homebrew/homebrew#37481. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
parent
944d5e2f34
commit
bcf0590bde
1 changed files with 17 additions and 9 deletions
|
@ -1,14 +1,22 @@
|
|||
require 'formula'
|
||||
|
||||
class Pipemeter < Formula
|
||||
homepage 'https://launchpad.net/pipemeter'
|
||||
url 'https://launchpad.net/pipemeter/trunk/1.1.3/+download/pipemeter-1.1.3.tar.gz'
|
||||
sha1 '8fe224b0cf77e9f3932f46fed0af5acc6547cd0c'
|
||||
homepage "https://launchpad.net/pipemeter"
|
||||
url "https://launchpad.net/pipemeter/trunk/1.1.3/+download/pipemeter-1.1.3.tar.gz"
|
||||
sha256 "1ff952cb2127476ca9879f4b28fb92d6dabb0cc02db41f657025f7782fd50aaf"
|
||||
|
||||
def install
|
||||
system "./configure", "--disable-debug", "--prefix=#{prefix}", "--mandir=#{man}"
|
||||
system "make"
|
||||
bin.install "pipemeter"
|
||||
man1.install "pipemeter.1"
|
||||
system "./configure", "--disable-debug",
|
||||
"--prefix=#{prefix}",
|
||||
"--mandir=#{man}"
|
||||
|
||||
# Fix the man1 directory location
|
||||
inreplace "Makefile", "$(PREFIX)/man/man1", man1
|
||||
|
||||
bin.mkpath
|
||||
man1.mkpath
|
||||
system "make", "install"
|
||||
end
|
||||
|
||||
test do
|
||||
assert_match "3.00B", pipe_output("pipemeter -r 2>&1 >/dev/null", "foo", 0)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue