app-engine-* 1.9.40 / 1.9.42, add tests

Closes #2694.

Signed-off-by: Andrew Janke <janke@eilonwy.local>
This commit is contained in:
Sergey Parhomenko 2016-07-03 14:14:31 +02:00 committed by Andrew Janke
parent e35017a698
commit a861a971e5
3 changed files with 22 additions and 8 deletions

View file

@ -1,8 +1,8 @@
class AppEngineGo32 < Formula
desc "Google App Engine SDK for Go (i386)"
homepage "https://cloud.google.com/appengine/docs/go/"
url "https://storage.googleapis.com/appengine-sdks/featured/go_appengine_sdk_darwin_386-1.9.38.zip"
sha256 "7d389a44a43ec65d4688a8f1437575f67313180634ba2c5d047bcbfbba90413b"
url "https://storage.googleapis.com/appengine-sdks/featured/go_appengine_sdk_darwin_386-1.9.40.zip"
sha256 "c00fe83a06816ae5fbe7b1e9b41268d675cd270d34412cf4806097479d5a0be7"
bottle :unneeded

View file

@ -1,14 +1,28 @@
class AppEngineJava < Formula
desc "Google App Engine for Java"
homepage "https://cloud.google.com/appengine/docs/java/gettingstarted/introduction"
url "https://storage.googleapis.com/appengine-sdks/featured/appengine-java-sdk-1.9.32.zip"
sha256 "1e757250acb1ecb61a09854bd07ee82a781cdb1fa76c44ed056b4de73a4cff79"
homepage "https://cloud.google.com/appengine/docs/java/"
url "https://storage.googleapis.com/appengine-sdks/featured/appengine-java-sdk-1.9.42.zip"
sha256 "3003892e89fb32a51dc3e2d91658fc7ba8b31f8b0b3fc22ccbd856ed94a03424"
bottle :unneeded
depends_on :java => "1.7+"
def install
rm Dir["bin/*.cmd"]
libexec.install Dir["*"]
bin.write_exec_script Dir["#{libexec}/bin/*"]
bin.write_exec_script %w[appcfg.sh dev_appserver.sh endpoints.sh google_sql.sh].each { |fn| libexec/"bin/#{fn}" }
end
test do
(testpath/"WEB-INF/web.xml").write "<web-app/>"
(testpath/"WEB-INF/appengine-web.xml").write "<appengine-web-app><threadsafe>true</threadsafe></appengine-web-app>"
Process.setsid
IO.popen("#{bin}/dev_appserver.sh . 2>&1") do |io|
assert_not_nil(io.gets, "Dev App Server terminated prematurely") until $_ == "INFO: Dev App Server is now running\n"
Signal.trap "INT", "IGNORE"
Process.kill "INT", 0
end
assert_equal(130, $?.exitstatus, "Dev App Server exited with unexpected status code")
end
end

View file

@ -1,8 +1,8 @@
class AppEnginePython < Formula
desc "Google App Engine"
homepage "https://cloud.google.com/appengine/docs"
url "https://storage.googleapis.com/appengine-sdks/featured/google_appengine_1.9.38.zip"
sha256 "7f4301dcebd59814cf411ab72176da6fbef2fa4d15bf4cb8643946c38befabba"
url "https://storage.googleapis.com/appengine-sdks/featured/google_appengine_1.9.40.zip"
sha256 "6a3c0dfbc403f13f13c803f15ec975a6a31827910f58f2ef233b3908d96d5935"
bottle :unneeded