[macruby-changes] [1064] MacRuby/branches/experimental/rakelib/spec.rake

source_changes at macosforge.org source_changes at macosforge.org
Sun Mar 22 14:28:36 PDT 2009


Revision: 1064
          http://trac.macosforge.org/projects/ruby/changeset/1064
Author:   eloy.de.enige at gmail.com
Date:     2009-03-22 14:28:36 -0700 (Sun, 22 Mar 2009)
Log Message:
-----------
Updated spec:ci rake task to only run the known good specs without using tags. This is what you'll want to use until we can get mspec with tags to work.

Modified Paths:
--------------
    MacRuby/branches/experimental/rakelib/spec.rake

Modified: MacRuby/branches/experimental/rakelib/spec.rake
===================================================================
--- MacRuby/branches/experimental/rakelib/spec.rake	2009-03-22 21:17:15 UTC (rev 1063)
+++ MacRuby/branches/experimental/rakelib/spec.rake	2009-03-22 21:28:36 UTC (rev 1064)
@@ -1,14 +1,11 @@
 namespace :spec do
-  MSPEC = "./miniruby -v -I./mspec/lib -I./lib ./mspec/bin/mspec"
+  MSPEC_RUN = "./miniruby -v -I./mspec/lib -I./lib ./mspec/bin/mspec-run"
   
-  desc "Run continuous integration examples for Ruby 1.9 including stdlib"
+  KNOWN_GOOD = %w{ and or }
+  
+  desc "Run continuous integration language examples (known good)"
   task :ci do
-    #sh "./mspec/bin/mspec ci -t ./miniruby -B spec/frozen/macruby.mspec"
-    
-    # TODO: Still fails at another require statment.
-    # It seems to spawns yet another process which also needs the proper laod path.
-    # Anyways load paths are currently broken on roxor. Will find out a tmp workaround tonight.
-    sh "#{MSPEC} ci -B spec/frozen/macruby.mspec spec/frozen/language"
+    sh "#{MSPEC_RUN} #{FileList["spec/frozen/language/{#{KNOWN_GOOD.join(',')}}_spec.rb"].join(' ')}"
   end
   
   desc "Run language examples"
@@ -20,7 +17,7 @@
     desc "Run language examples with a workaround which uses mspec-run on each individual spec"
     task :language do
       Dir.glob('spec/frozen/language/**/*_spec.rb').each do |spec|
-        sh "#{MSPEC}-run #{spec}" rescue nil
+        sh "#{MSPEC_RUN} #{spec}" rescue nil
       end
     end
   end
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20090322/1124fb5b/attachment.html>


More information about the macruby-changes mailing list