rock: install more stuff and add test.
Closes Homebrew/homebrew#32890. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
parent
df00bacc30
commit
14bfbadcbe
1 changed files with 10 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue