diff options
| author | Adam Vandenberg | 2012-02-12 10:53:51 -0800 |
|---|---|---|
| committer | Adam Vandenberg | 2012-02-12 20:08:56 -0800 |
| commit | 31332ffd06bf8cfc8773dda85af410631e792ae2 (patch) | |
| tree | a28648161a0fede19ddd2cb8382a5a65c94a5238 /Library/Formula/ceylon.rb | |
| parent | ca18e2238ba4c2b5ee4df38e239c74548dd88fdb (diff) | |
| download | homebrew-31332ffd06bf8cfc8773dda85af410631e792ae2.tar.bz2 | |
ceylon: add tests; use install_symlink
Diffstat (limited to 'Library/Formula/ceylon.rb')
| -rw-r--r-- | Library/Formula/ceylon.rb | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/Library/Formula/ceylon.rb b/Library/Formula/ceylon.rb index e4886f9b4..ad8440753 100644 --- a/Library/Formula/ceylon.rb +++ b/Library/Formula/ceylon.rb @@ -1,10 +1,10 @@ require 'formula' class Ceylon < Formula - url 'http://ceylon-lang.org/download/dist/1_0_Milestone1' homepage 'http://ceylon-lang.org/' - md5 '627ebfc52fc9ba93fc63df59f8309509' + url 'http://ceylon-lang.org/download/dist/1_0_Milestone1' version '1.0.M1' + md5 '627ebfc52fc9ba93fc63df59f8309509' def install rm_f Dir["bin/*.bat"] @@ -12,7 +12,15 @@ class Ceylon < Formula doc.install Dir['doc/*'] libexec.install Dir['*'] - bin.mkpath - Dir["#{libexec}/bin/*"].each { |f| ln_s f, bin } + # Symlink shell scripts but not args.sh + bin.install_symlink Dir["#{libexec}/bin/ceylon*"] + end + + def test + Dir.chdir "#{libexec}/samples/helloworld" do + system "#{bin}/ceylonc", "com.acme.helloworld" + system "#{bin}/ceylond", "-private", "com.acme.helloworld" + system "#{bin}/ceylon", "com.acme.helloworld/1.0.0", "John" + end end end |
