mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
96863dc358
any tests have not run. * bin/testrb, test/runner.rb: use Test::Unit.start. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28655 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
25 lines
506 B
Ruby
25 lines
506 B
Ruby
require 'rbconfig'
|
|
exit if CROSS_COMPILING
|
|
|
|
require 'test/unit'
|
|
|
|
src_testdir = File.dirname(File.expand_path(__FILE__))
|
|
srcdir = File.dirname(src_testdir)
|
|
|
|
exit Test::Unit.start {|files|
|
|
if files.empty?
|
|
[src_testdir]
|
|
else
|
|
files.map {|f|
|
|
if File.exist? "#{src_testdir}/#{f}"
|
|
"#{src_testdir}/#{f}"
|
|
elsif File.exist? "#{srcdir}/#{f}"
|
|
"#{srcdir}/#{f}"
|
|
elsif File.exist? f
|
|
f
|
|
else
|
|
raise ArgumentError, "not found: #{f}"
|
|
end
|
|
}
|
|
end
|
|
}
|