[macruby-changes] [878] MacRuby/branches/experimental

source_changes at macosforge.org source_changes at macosforge.org
Wed Mar 11 16:31:18 PDT 2009


Revision: 878
          http://trac.macosforge.org/projects/ruby/changeset/878
Author:   eloy.de.enige at gmail.com
Date:     2009-03-11 16:31:18 -0700 (Wed, 11 Mar 2009)
Log Message:
-----------
Added macruby.mspec script which is right now just a copy or the ruby.1.9.mspec script with the right target and added a spec:ci rake task.

Modified Paths:
--------------
    MacRuby/branches/experimental/Rakefile

Added Paths:
-----------
    MacRuby/branches/experimental/spec/frozen/macruby.mspec

Modified: MacRuby/branches/experimental/Rakefile
===================================================================
--- MacRuby/branches/experimental/Rakefile	2009-03-11 23:12:57 UTC (rev 877)
+++ MacRuby/branches/experimental/Rakefile	2009-03-11 23:31:18 UTC (rev 878)
@@ -687,6 +687,16 @@
   end
 end
 
+namespace :spec do
+  desc "Run continuous integration examples for Ruby 1.9 including stdlib"
+  task :ci do
+    sh "./mspec/bin/mspec ci -t ./miniruby -B spec/frozen/macruby.mspec"
+  end
+end
+
+# desc "Run all 'known good' specs (task alias for spec:ci)"
+# task :spec => 'spec:ci'
+
 desc "Same as framework:install"
 task :install => 'framework:install'
 

Added: MacRuby/branches/experimental/spec/frozen/macruby.mspec
===================================================================
--- MacRuby/branches/experimental/spec/frozen/macruby.mspec	                        (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/macruby.mspec	2009-03-11 23:31:18 UTC (rev 878)
@@ -0,0 +1,58 @@
+class MSpecScript
+  # Language features specs
+  set :language, [ 'language' ]
+
+  # Core library specs
+  set :core, [ 'core' ]
+
+  # Standard library specs
+  set :library, [
+    'library',
+
+    # obsolete libraries
+    '^library/cgi-lib',
+    '^library/date2',
+    '^library/eregex',
+    '^library/finalize',
+    '^library/ftools',
+    '^library/generator',
+    '^library/getopts',
+    '^library/importenv',
+    '^library/jcode',
+    '^library/mailread',
+    '^library/parsearg',
+    '^library/parsedate',
+    '^library/ping',
+    '^library/readbytes',
+    '^library/rubyunit',
+    '^library/runit',
+    '^library/soap',
+    '^library/wsdl',
+    '^library/xsd',
+    '^library/Win32API',
+
+    '^library/test/unit/collector',
+    '^library/test/unit/ui',
+    '^library/test/unit/util',
+
+    '^library/dl',  # reimplemented and API changed
+  ]
+
+  # An ordered list of the directories containing specs to run
+  set :files, get(:language) + get(:core) + get(:library)
+
+  # This set of files is run by mspec ci
+  set :ci_files, get(:files)
+
+  # The default implementation to run the specs.
+  # TODO: this needs to be more sophisticated since the
+  # executable is not consistently named.
+  set :target, './miniruby'
+
+  set :tags_patterns, [
+                        [%r(language/), 'tags/1.9/language/'],
+                        [%r(core/),     'tags/1.9/core/'],
+                        [%r(library/),  'tags/1.9/library/'],
+                        [/_spec.rb$/,   '_tags.txt']
+                      ]
+end
\ No newline at end of file
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20090311/1c926728/attachment.html>


More information about the macruby-changes mailing list