aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorBaptiste Fontaine2015-02-28 23:09:11 +0100
committerMike McQuaid2015-03-01 13:25:24 +0000
commit772b8f9f9f5701b64e69130701213e7aedf4cd3c (patch)
tree0edaa4889ab9ad86c190c36efb8c68be33fb1e47 /Library
parent19a08c07dd879eb82cc82ac36f6cc715c5957b4b (diff)
downloadhomebrew-772b8f9f9f5701b64e69130701213e7aedf4cd3c.tar.bz2
kanif: test added
Closes #37279. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/kanif.rb9
1 files changed, 6 insertions, 3 deletions
diff --git a/Library/Formula/kanif.rb b/Library/Formula/kanif.rb
index 767ad0398..6cc9f1177 100644
--- a/Library/Formula/kanif.rb
+++ b/Library/Formula/kanif.rb
@@ -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