summaryrefslogtreecommitdiff
path: root/test/runner.rb
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-10-29 14:35:53 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-10-29 14:35:53 +0000
commit32623a16276b8c99a8c142c570cb2f50dc3df737 (patch)
tree167f8e540931b46a3dcc6c1c9bbe86abf9b58bca /test/runner.rb
parentf85b841a012bb07e4b5b22a792974d7d929a091d (diff)
* test/profile_test_all.rb: added.
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
Diffstat (limited to 'test/runner.rb')
-rw-r--r--test/runner.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/runner.rb b/test/runner.rb
index c92cb2670f..b96081e7e2 100644
--- a/test/runner.rb
+++ b/test/runner.rb
@@ -6,6 +6,8 @@ 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?