ec2-api-tools: test added

Closes Homebrew/homebrew#36056.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
Baptiste Fontaine 2015-01-20 10:27:42 +01:00 committed by Mike McQuaid
parent d955d7840c
commit c1b99af242

View file

@ -1,11 +1,15 @@
require 'formula'
class Ec2ApiTools < AmazonWebServicesFormula
homepage 'http://aws.amazon.com/developertools/351'
url 'http://ec2-downloads.s3.amazonaws.com/ec2-api-tools-1.7.1.0.zip'
sha1 '154acfb5d117d0af1311c65030671cd56eb987aa'
homepage "http://aws.amazon.com/developertools/351"
url "http://ec2-downloads.s3.amazonaws.com/ec2-api-tools-1.7.1.0.zip"
sha1 "154acfb5d117d0af1311c65030671cd56eb987aa"
def caveats
standard_instructions "EC2_HOME"
end
test do
ENV["JAVA_HOME"] = `/usr/libexec/java_home`.chomp
ENV["EC2_HOME"] = libexec
assert_match version.to_s, shell_output("#{bin}/ec2-version")
end
end