Revision: 1064 http://trac.macosforge.org/projects/ruby/changeset/1064 Author: eloy.de.enige@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
participants (1)
-
source_changes@macosforge.org