app-engine-go-32: fix install failure and add test

Closes Homebrew/homebrew#48515.

Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
This commit is contained in:
David Wu 2016-01-27 22:55:57 +08:00 committed by Baptiste Fontaine
parent 5a5d6462da
commit 50b11d2716

View file

@ -12,12 +12,15 @@ class AppEngineGo32 < Formula
:because => "both install the same binaries"
def install
cd ".."
share.install "go_appengine" => name
share.install Dir["*"]
%w[
api_server.py appcfg.py bulkloader.py bulkload_client.py dev_appserver.py download_appstats.py goapp
].each do |fn|
bin.install_symlink share/name/fn
bin.install_symlink share/fn
end
end
test do
assert_match /^usage: goapp serve/, shell_output("#{bin}/goapp help serve").strip
end
end