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

18 lines
328 B
Ruby
Raw Normal View History

require 'rbconfig'
exit if CROSS_COMPILING
require 'test/unit'
src_testdir = File.dirname(File.expand_path(__FILE__))
srcdir = File.dirname(src_testdir)
tests = Test::Unit.new {|files, options|
options[:base_directory] = src_testdir
if files.empty?
[src_testdir]
else
files
end
}
exit tests.run(ARGV) || true