1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/spec/default.mspec
yugui 7a4905583d * spec/default.mspec (config): added.
* spec/default.mspec (target): replaced the built ruby
  to runruby.rb.
  Improved $LOAD_PATH on running specs.

* spec/default.mspec (flags): ditto.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18989 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-31 08:31:38 +00:00

22 lines
698 B
Ruby

class MSpecScript
# An ordered list of the directories containing specs to run
# as the CI process.
set :ci_files, %w[
spec/rubyspec/1.9/core
spec/rubyspec/1.9/language
spec/rubyspec/1.9/library
]
srcdir = File.expand_path(File.join(File.dirname(__FILE__), '..'))
config = proc{|name| `#{srcdir}/miniruby -I#{srcdir} -rrbconfig -e 'print Config::CONFIG["#{name}"]'`}
# The default implementation to run the specs.
set :target, File.join(srcdir, "miniruby#{config['exeext']}")
set :flags, %W[
-I#{srcdir}/lib
-I#{srcdir}/#{config['EXTOUT']}/common
-I#{srcdir}/-
-r#{srcdir}/ext/purelib.rb
#{srcdir}/runruby.rb --extout=#{config['EXTOUT']}
]
end