ruby/tool/lib
Yusuke Endoh 5bf75c20a2 Refactor the settings of test-all out
test/runner.rb and tool/lib/test/unit/parallel.rb must use the same
settings. However, some settings were copied and pasted, while some were
added only to test/runner.rb.
This changeset creates tool/test/init.rb for all settings of test-unit,
which is loaded not only by test/runner.rb but also
tool/lib/test/unit/parallel.rb.

Background: the GEM_HOME environment variable was removed in
test/runner.rb, which prohibit `require "rake"` (note that rake is a
bundled gem). However the parallel mode didn't refrect this setting,
i.e., `require "rake"` was allowed.
This leads to an inconsistency, which actually affected a test test
defines s test class *only when* `require "rake"` is successful.
(test/rubygems/test_gem_package_task.rb)

1851105563 (step):8:1714
```
  /home/runner/work/ruby/ruby/src/tool/lib/test/unit.rb:729:in `const_get': uninitialized constant TestGemPackageTask (NameError)

                suites.map! {|r| ::Object.const_get(r[:testcase])}
                                         ^^^^^^^^^^
```
2023-11-15 19:27:10 +09:00
..
-test-
test Refactor the settings of test-all out 2023-11-15 19:27:10 +09:00
webrick Remove require 'io/wait' where it's no longer necessary. (#6932) 2022-12-15 11:37:01 +13:00
bundled_gem.rb Allow to use development version of bundled gems for packaging 2023-05-09 12:57:12 +09:00
colorize.rb check NO_COLOR envval 2022-12-26 23:06:35 +09:00
core_assertions.rb Added explicitly begin-end block for Ruby 2.4. 2023-10-20 14:34:08 +09:00
envutil.rb Prefer RbConfig.ruby over the 3.times fallback (#8691) 2023-10-17 17:57:39 -07:00
find_executable.rb
gc_checker.rb
iseq_loader_checker.rb
jisx0208.rb
leakchecker.rb Check if Bundler::EnvironmentPreserver is defined 2023-03-31 11:11:45 +09:00
memory_status.rb Prefer to use File.foreach instead of IO.foreach 2023-02-27 18:49:18 +09:00
output.rb tool/lib/output.rb: Make --color option like GNU coreutils 2023-08-23 19:40:56 +09:00
profile_test_all.rb
tracepointchecker.rb
vcs.rb Support regexp in log-fix [ci skip] 2023-10-03 22:02:02 +09:00
vpath.rb file2lastrev.rb: separate options for Output and VPath 2022-11-02 12:38:03 +09:00
webrick.rb
zombie_hunter.rb