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