mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
32623a1627
You can use test-all profiler with the following command: RUBY_TEST_ALL_PROFILE=true make test-all This command generates ./test_all_profile and you can analyse which tests consume memories. * test/runner.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29627 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
19 lines
407 B
Ruby
19 lines
407 B
Ruby
require 'rbconfig'
|
|
exit if CROSS_COMPILING
|
|
|
|
require 'test/unit'
|
|
|
|
src_testdir = File.dirname(File.expand_path(__FILE__))
|
|
srcdir = File.dirname(src_testdir)
|
|
|
|
require_relative 'profile_test_all' if ENV['RUBY_TEST_ALL_PROFILE'] == 'true'
|
|
|
|
tests = Test::Unit.new {|files, options|
|
|
options[:base_directory] = src_testdir
|
|
if files.empty?
|
|
[src_testdir]
|
|
else
|
|
files
|
|
end
|
|
}
|
|
exit tests.run(ARGV) || true
|