Issue #19142 has been updated by nobu (Nobuyoshi Nakada).
I think that `test` needs `install` only when "preloadenv" and
`--enable-load-relative` can't work.
At least `test-all` can run as `/install/bin/ruby test/runner.rb`, I think.
----------------------------------------
Misc #19142: Run test suites against 'install', based on ENV variable?
https://bugs.ruby-lang.org/issues/19142#change-100270
* Author: MSP-Greg (Greg L)
* Status: Open
* Priority: Normal
----------------------------------------
Some time ago I believe there was discussion about:
```
make
make test
make install
```
vs
```
make
make install
make test
```
Some people preferred to not have to run install before test (disk space, time, etc).
Might an environment variable like `RUBY_TEST_FROM_INSTALL` or `RUBY_TEST_FROM_PATH` be
added that would trigger the test suite to test against the Ruby install folder or the
Ruby in PATH?
I believe a handful of files in the test system would need changes, as they load files
using `require_relative`...
I think spec/mspec is already setup to do so.
--
https://bugs.ruby-lang.org/