summaryrefslogtreecommitdiff
path: root/tool/test/init.rb
diff options
context:
space:
mode:
Diffstat (limited to 'tool/test/init.rb')
-rw-r--r--tool/test/init.rb26
1 files changed, 26 insertions, 0 deletions
diff --git a/tool/test/init.rb b/tool/test/init.rb
new file mode 100644
index 0000000000..3fd1419a9c
--- /dev/null
+++ b/tool/test/init.rb
@@ -0,0 +1,26 @@
+# This file includes the settings for "make test-all" and "make test-tool".
+# Note that this file is loaded not only by test/runner.rb but also by tool/lib/test/unit/parallel.rb.
+
+# Prevent test-all from using bundled gems
+["GEM_HOME", "GEM_PATH"].each do |gem_env|
+ # Preserve the gem environment prepared by tool/runruby.rb for test-tool, which uses bundled gems.
+ ENV["BUNDLED_#{gem_env}"] = ENV[gem_env]
+
+ ENV[gem_env] = "".freeze
+end
+ENV["GEM_SKIP"] = "".freeze
+
+ENV.delete("RUBY_CODESIGN")
+
+Warning[:experimental] = false
+
+$LOAD_PATH.unshift File.expand_path("../lib", __dir__)
+
+require 'test/unit'
+
+require "profile_test_all" if ENV.key?('RUBY_TEST_ALL_PROFILE')
+require "tracepointchecker"
+require "zombie_hunter"
+require "iseq_loader_checker"
+require "gc_checker"
+require_relative "../test-coverage.rb" if ENV.key?('COVERAGE')