aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorBaptiste Fontaine2015-01-20 10:27:42 +0100
committerMike McQuaid2015-01-20 17:11:50 +0100
commitf9881113c6c963182dbdb16ade9beb5ab0d50ac7 (patch)
tree06ec84aff2f861a7b4762bcf09b7a6f0cddeb1d5 /Library
parentc7b9a253a53aef8d721dcfb6c943a6f9afd9feee (diff)
downloadhomebrew-f9881113c6c963182dbdb16ade9beb5ab0d50ac7.tar.bz2
ec2-api-tools: test added
Closes #36056. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/ec2-api-tools.rb14
1 files changed, 9 insertions, 5 deletions
diff --git a/Library/Formula/ec2-api-tools.rb b/Library/Formula/ec2-api-tools.rb
index 3b64adc6c..567636d04 100644
--- a/Library/Formula/ec2-api-tools.rb
+++ b/Library/Formula/ec2-api-tools.rb
@@ -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