ruby/tool/test
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)

https://github.com/ruby/ruby/actions/runs/6807729617/job/18511055636#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
..
testunit Fix test failure with __runner_options__ renaming 2023-10-26 12:39:13 +09:00
webrick s/MJIT/RJIT/ 2023-03-06 23:44:01 -08:00
init.rb Refactor the settings of test-all out 2023-11-15 19:27:10 +09:00
runner.rb Refactor the settings of test-all out 2023-11-15 19:27:10 +09:00
test_jisx0208.rb
test_sync_default_gems.rb Remove files which are newly added but to be ignored 2023-11-07 10:45:02 +09:00