From 7a4905583dbc3df670a77bbf5dba5fbbade6d455 Mon Sep 17 00:00:00 2001 From: yugui Date: Sun, 31 Aug 2008 08:31:38 +0000 Subject: * 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 --- spec/default.mspec | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'spec') diff --git a/spec/default.mspec b/spec/default.mspec index b429f6417c..e4b9dae523 100644 --- a/spec/default.mspec +++ b/spec/default.mspec @@ -8,6 +8,15 @@ class MSpecScript ] 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, `#{srcdir}/miniruby -I#{srcdir} -rrbconfig -e 'print Config::CONFIG["RUBY_INSTALL_NAME"]'`) + 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 -- cgit v1.2.1