2004-11-20 16:58:20 +03:00
|
|
|
require 'rbconfig'
|
2008-10-15 08:16:28 +04:00
|
|
|
|
2008-10-16 17:55:09 +04:00
|
|
|
require 'test/unit'
|
2008-10-19 19:59:35 +04:00
|
|
|
|
|
|
|
src_testdir = File.dirname(File.expand_path(__FILE__))
|
|
|
|
srcdir = File.dirname(src_testdir)
|
|
|
|
|
2010-10-29 18:35:53 +04:00
|
|
|
require_relative 'profile_test_all' if ENV['RUBY_TEST_ALL_PROFILE'] == 'true'
|
|
|
|
|
2010-09-16 16:40:40 +04:00
|
|
|
tests = Test::Unit.new {|files, options|
|
|
|
|
options[:base_directory] = src_testdir
|
2008-10-19 19:59:35 +04:00
|
|
|
if files.empty?
|
|
|
|
[src_testdir]
|
|
|
|
else
|
2010-09-16 16:40:40 +04:00
|
|
|
files
|
2008-10-19 19:59:35 +04:00
|
|
|
end
|
|
|
|
}
|
2010-07-17 14:01:49 +04:00
|
|
|
exit tests.run(ARGV) || true
|