mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
644d1e7a47
inherits configurations from ruby.1.9.mspec. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20515 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
18 lines
687 B
Ruby
18 lines
687 B
Ruby
load File.dirname(__FILE__) + '/rubyspec/ruby.1.9.mspec'
|
|
class MSpecScript
|
|
builddir = File.expand_path(File.join(File.dirname(__FILE__), '..'))
|
|
srcdir = ENV['SRCDIR']
|
|
srcdir ||= $1 if File.read("#{builddir}/Makefile")[/^\s*srcdir\s*=\s*(.+)/i]
|
|
srcdir ||= builddir
|
|
config = proc{|name| `#{builddir}/miniruby -I#{srcdir} -rrbconfig -e 'print Config::CONFIG["#{name}"]'`}
|
|
|
|
# The default implementation to run the specs.
|
|
set :target, File.join(builddir, "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
|