summaryrefslogtreecommitdiffstats
path: root/bootstraptest/runner.rb
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-07-06 09:23:53 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-07-06 09:23:53 +0000
commit1a1800b7b8c5d1213c8d05e80436b0978753286c (patch)
tree8f07c8ae87b82e94b9aa721dc7ea33b34cab8ba3 /bootstraptest/runner.rb
parente831c683fb7efedb3743e18f04010a5e5fa7bc86 (diff)
downloadruby-1a1800b7b8c5d1213c8d05e80436b0978753286c.tar.gz
ruby-1a1800b7b8c5d1213c8d05e80436b0978753286c.tar.xz
ruby-1a1800b7b8c5d1213c8d05e80436b0978753286c.zip
* 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: http://svn.ruby-lang.org/repos/ruby/trunk@12716 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'bootstraptest/runner.rb')
-rw-r--r--bootstraptest/runner.rb13
1 files changed, 9 insertions, 4 deletions
diff --git a/bootstraptest/runner.rb b/bootstraptest/runner.rb
index 556a1d9e1..53e2a1ec6 100644
--- a/bootstraptest/runner.rb
+++ b/bootstraptest/runner.rb
@@ -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