ktoblzcheck: modernize
* Remove obsolete require 'formula' * Replace single quotes with double quotes * Split system argument string * Add test Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This commit is contained in:
parent
7f7eb59089
commit
f17bd5f9fb
1 changed files with 6 additions and 3 deletions
|
@ -1,5 +1,3 @@
|
|||
require "formula"
|
||||
|
||||
class Ktoblzcheck < Formula
|
||||
homepage "http://ktoblzcheck.sourceforge.net/"
|
||||
url "https://downloads.sourceforge.net/project/ktoblzcheck/ktoblzcheck-1.48.tar.gz"
|
||||
|
@ -16,6 +14,11 @@ class Ktoblzcheck < Formula
|
|||
"--prefix=#{prefix}"
|
||||
system "make"
|
||||
ENV.j1
|
||||
system "make install"
|
||||
system "make", "install"
|
||||
end
|
||||
|
||||
test do
|
||||
assert_match /Ok/, shell_output("#{bin}/ktoblzcheck --outformat=oneline 10000000 123456789", 0)
|
||||
assert_match /unknown/, shell_output("#{bin}/ktoblzcheck --outformat=oneline 12345678 100000000", 3)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue