From b8be562b55f3d8ae3455efccade67c11ae1bf278 Mon Sep 17 00:00:00 2001 From: Baptiste Fontaine Date: Thu, 23 Apr 2015 21:00:34 +0200 Subject: kes: test added Closes #38983. Signed-off-by: Mike McQuaid --- Library/Formula/kes.rb | 28 +++++++++++++++++----------- 1 file changed, 17 insertions(+), 11 deletions(-) (limited to 'Library') diff --git a/Library/Formula/kes.rb b/Library/Formula/kes.rb index 6a42efab0..a91c308f2 100644 --- a/Library/Formula/kes.rb +++ b/Library/Formula/kes.rb @@ -1,18 +1,24 @@ -require 'formula' - class Kes < Formula - homepage 'https://github.com/epilnivek/kes' - url 'https://github.com/epilnivek/kes/archive/v0.9.tar.gz' - sha1 '483ff8c76372bc12a852ae10d8d5edc7591cfe09' + homepage "https://github.com/epilnivek/kes" + url "https://github.com/epilnivek/kes/archive/v0.9.tar.gz" + sha256 "d0db16ba7892d9692cacd552d684f03a9d0333ba0e7b629a998fa9c127ef050e" - head 'https://github.com/epilnivek/kes.git' + head "https://github.com/epilnivek/kes.git" - depends_on 'readline' + depends_on "readline" def install - system "./configure", "--prefix=#{prefix}", "--mandir=#{man}", "--with-readline" - system "make" - bin.install 'es' - man1.install 'doc/es.1' + system "./configure", "--prefix=#{prefix}", + "--mandir=#{man}", + "--with-readline" + + bin.mkpath + man1.mkpath + + system "make", "install" + end + + test do + assert_equal "Homebrew\n", shell_output("#{bin}/es -c 'echo Homebrew'") end end -- cgit v1.2.3