rock: install more stuff and add test.

Closes Homebrew/homebrew#32890.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
TingPing 2014-10-02 20:27:33 -04:00 committed by Mike McQuaid
parent df00bacc30
commit 14bfbadcbe

View file

@ -25,6 +25,15 @@ class Rock < Formula
# install misc authorship files & rock binary in place
# copy the sdk, libs and docs
prefix.install "rock.use", 'README.md', "sdk", "docs"
prefix.install "rock.use", "sdk.use", "sdk-net.use", "sdk-dynlib.use", "pcre.use", "sdk", "README.md"
doc.install Dir["docs/*"]
end
test do
(testpath/"hello.ooc").write <<-EOS.undent
import os/Time
Time dateTime() println()
EOS
system "#{bin}/rock", "--run", "hello.ooc"
end
end