From 889c7308b23acd11d284b24ea6da3fd4d5c0c75c Mon Sep 17 00:00:00 2001 From: Baptiste Fontaine Date: Thu, 14 May 2015 19:49:51 +0200 Subject: [PATCH] whirr: basic test added Closes Homebrew/homebrew#39759. Signed-off-by: Mike McQuaid --- Formula/whirr.rb | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/Formula/whirr.rb b/Formula/whirr.rb index 37d81e1d6d..cf861c2d0d 100644 --- a/Formula/whirr.rb +++ b/Formula/whirr.rb @@ -1,12 +1,14 @@ -require 'formula' - class Whirr < Formula - homepage 'http://whirr.apache.org/' - url 'http://www.apache.org/dyn/closer.cgi?path=whirr/whirr-0.8.2/whirr-0.8.2.tar.gz' - sha1 'd5bd127bc396795e4c512c1584a8c73abde5a78c' + homepage "https://whirr.apache.org/" + url "https://www.apache.org/dyn/closer.cgi?path=whirr/whirr-0.8.2/whirr-0.8.2.tar.gz" + sha256 "d5ec36c4a6928079118065e3d918679870a42c844e47924b1cd4d7be00a4aca5" def install libexec.install %w[bin conf lib] - bin.write_exec_script libexec/'bin/whirr' + bin.write_exec_script libexec/"bin/whirr" + end + + test do + system "#{bin}/whirr", "help", "help" end end