1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* bootstraptest/runner.rb: fix load path.

* common.mk: fix "test" rule to run with "btest".
* rubytest.rb, sample/test.rb: fix to show tests progress.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12716 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
ko1 2007-07-06 09:23:53 +00:00
parent 9aa9c07c07
commit 616f4d3385
5 changed files with 24 additions and 6 deletions

View file

@ -5,12 +5,18 @@
# Never use test/unit in this file.
# Never use Ruby extensions in this file.
require 'fileutils'
begin
require 'fileutils'
require 'tmpdir'
rescue LoadError
$:.unshift File.join(File.dirname(__FILE__), '../lib')
retry
end
def main
@ruby = File.expand_path('miniruby')
@verbose = false
dir = '/tmp/bootstraptest.tmpwd'
dir = File.join(Dir.tmpdir, 'bootstraptest.tmpwd')
quiet = false
tests = nil
ARGV.delete_if {|arg|
@ -73,8 +79,7 @@ def exec_test(pathes)
@errbuf = []
@location = nil
pathes.each do |path|
puts
puts File.basename(path)
$stderr.print "\n#{File.basename(path)} "
load File.expand_path(path)
end
$stderr.puts