From 31332ffd06bf8cfc8773dda85af410631e792ae2 Mon Sep 17 00:00:00 2001 From: Adam Vandenberg Date: Sun, 12 Feb 2012 10:53:51 -0800 Subject: ceylon: add tests; use install_symlink --- Library/Formula/ceylon.rb | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) (limited to 'Library/Formula') 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 -- cgit v1.2.3