kanif: test added

Closes Homebrew/homebrew#37279.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
Baptiste Fontaine 2015-02-28 23:09:11 +01:00 committed by Mike McQuaid
parent 2abe84bcd3
commit 5846a479f9

View file

@ -1,11 +1,9 @@
require "formula"
class Kanif < Formula
homepage "http://taktuk.gforge.inria.fr/kanif/"
url "http://gforge.inria.fr/frs/download.php/26773/kanif-1.2.2.tar.gz"
sha1 "7a10fe0e74159875f004b6c4a12a0202ff092ce9"
depends_on "taktuk"
depends_on "taktuk" => :run
def install
system "./configure", "--disable-debug",
@ -14,4 +12,9 @@ class Kanif < Formula
"--prefix=#{prefix}"
system "make", "install"
end
test do
assert_match "taktuk -s -c 'ssh' -l brew",
shell_output("#{bin}/kash -q -l brew -r ssh")
end
end