ec2-api-tools: test added
Closes Homebrew/homebrew#36056. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
parent
d955d7840c
commit
c1b99af242
1 changed files with 9 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue