Skip to content
Builds one or many RubyVM's and runs tests against them.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
README
build_ruby.rb

README

RubyBuild objects encapsulate the information needed to checkout, 
build, and run tests on a tag or branch version of Ruby from a 
git clone of the main Ruby subversion repository.

Current limitations:

* so far only the 1.8 rubyspecs test are run.
* initially it only works with Vladimir Sizikov's git clone
  of MRI Ruby here: git://github.com/rubyspec/matzruby.git

Example -- building and testing a development branch:

   rb = RubyBuild.new('ruby_1_8')
   rb.build
   rb.test
   puts rb.report
   
   rubyspec tests for branch: ruby_1_8:
   
   testset: 1.8/language:
   tests completed, files, examples, expectations, failures, errors
   true, 47, 601, 1620, 0, 0
   
   testset: 1.8/library:
   tests completed, files, examples, expectations, failures, errors
   true, 1240, 3175, 10952, 15, 8
   
   testset: 1.8/core:
   tests completed, files, examples, expectations, failures, errors
   true, 1092, 4893, 17353, 0, 2

Example -- building and testing a tagged branch:

   rb = RubyBuild.new(186, 257)
   rb.build
   rb.test
   puts rb.report
   
   rubyspec tests for branch: ruby_v1_8_6_257:
   summary:
   tests completed, files, examples, expectations, failures, errors
   true, 2379, 8537, 27777, 21, 3
   
   testset: 1.8/language:
   tests completed, files, examples, expectations, failures, errors
   true, 47, 601, 1620, 0, 0
   
   testset: 1.8/library:
   tests completed, files, examples, expectations, failures, errors
   true, 1240, 3071, 8863, 21, 3
   
   testset: 1.8/core:
   tests completed, files, examples, expectations, failures, errors
   true, 1092, 4865, 17294, 0, 0

See more documentation in build_ruby.rb
You can’t perform that action at this time.