Skip to content

Commit

Permalink
* spec/default.mspec (config): added.
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
yugui committed Aug 31, 2008
1 parent 94f421c commit 7a49055
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
10 changes: 10 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
Sun Aug 31 17:28:25 2008 Yuki Sonoda (Yugui) <[email protected]>

* 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.

Sun Aug 31 17:16:07 2008 Tanaka Akira <[email protected]>

* transcode.c (make_econv_exception): rename instance variable names
Expand Down
11 changes: 10 additions & 1 deletion spec/default.mspec
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 7a49055

Please sign in to comment.