57 Commits
Author SHA1 Message Date
Hiroshi SHIBATAandClaude Opus 5.5 2bd5b04e60 Read GNUmakefile when the build directory has no Makefile
`configure.bat --with-gnu-make` writes only `GNUmakefile`. The tests under `test/mkmf` failed to load with `Errno::ENOENT`, and `spec/default.mspec` lost `srcdir` and ran specs without `tool/runruby.rb`.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-15 08:00:21 +09:00
Hiroshi SHIBATAandClaude Opus 5 dd9f2b9e98 Strip the Ruby::Box experimental warning from ruby_exe output
Same reason as the EnvUtil change.  A spec that replaces RUBYOPT loses
the suppression, so the ruby mspec spawns prints the experimental
warning into the output ruby_exe returns.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-10 16:10:29 +09:00
Hiroshi SHIBATAandClaude Opus 5 0a30fd9cc6 Put -W:no-experimental after whatever RUBYOPT already carries
The last -W switch wins, so prepending it left an inherited -w or -W2 in
control and the suppression quietly did nothing.  `make test-all
RUBYOPT=-w` reproduces it: under `RUBY_BOX=1` test_open3.rb and
test_pty.rb stay at 12 and 4 failures, and reach 0 once the switch moves
behind the inherited options and in front of the bare "-".

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-10 14:07:00 +09:00
Hiroshi SHIBATAandClaude Opus 5 61a154ebf0 Suppress experimental warnings in the ruby processes tests spawn
test-all already turns experimental warnings off for its own process,
but tests that spawn ruby directly with Open3, IO.popen or PTY assert
the captured output verbatim.  With `RUBY_BOX=1` in the environment
every child prints the Ruby::Box experimental warning to stderr, and 51
tests and specs fail on it.  Pass `-W:no-experimental` down through
RUBYOPT.  It has to precede the bare "-" that common.mk puts there,
because that ends the option scan.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-10 14:07:00 +09:00
Nobuyoshi Nakada bfba65d8c1 Extract Test::JobServer module
A placeholder to handle GNU make jobserver option.
spec/default.mspec didn't handle the jobserver using a FIFO.
2025-12-19 13:36:42 +09:00
Hiroshi SHIBATA d722bdcf6e Convert ostruct to openstruct 2025-01-08 17:12:19 +09:00
Hiroshi SHIBATA a3ba723ef0 Suppress constant warning for test-bundled-gems-spec 2024-09-10 16:07:04 +09:00
Nobuyoshi Nakada ab353a3064 Fix the case COLUMNS is unset 2024-05-29 21:37:40 +09:00
Nobuyoshi Nakada 632115c11e Round down test-spec folding width to a multiple of 20
A prime number 73 is not good for counting.
2024-05-29 19:49:57 +09:00
Hiroshi SHIBATA 4aef875205 Surpressing constant redefinition warning 2024-02-15 20:34:52 +09:00
Hiroshi SHIBATA 121dfb38be Surpressing constant redefinition warning 2024-02-15 18:57:23 +09:00
Hiroshi SHIBATA 1e6fffaeeb Added new ruby/spec task for bundled gems 2024-02-15 18:57:23 +09:00
Hiroshi SHIBATA 76d322b5d2 Disable to run for bundled gems in test-spec 2024-02-15 18:57:23 +09:00
Benoit Daloze d24be39d69 Only check constant leaks by default for make test-spec
* See https://github.com/ruby/ruby/pull/9548
2024-02-15 07:44:03 +09:00
Benoit Daloze d9bd64f9ee Fix typo 2024-02-05 16:29:25 +01:00
Nobuyoshi Nakada 01459f1644 Set CHECK_LEAKS in spec/default.mspec
Because of `.NOEXPORT:` in template/Makefile.in, variables in
common.mk will not be exported.
2024-01-16 20:29:06 +09:00
Nobuyoshi Nakada 2c9fbc5100 Add dotted counts 2023-08-12 11:19:10 +09:00
Nobuyoshi Nakada 2373feade5 For parallel test 2023-08-12 11:19:10 +09:00
Nobuyoshi Nakada b377793b6e Fold dotted outputs from test-spec 2023-08-12 11:19:09 +09:00
Hiroshi SHIBATA 545ade21a2 Enable code-coverage result for test-spec 2023-01-26 15:32:29 +09:00
Nobuyoshi Nakada ee86b57ee5 Revert jobserver handling in spec 2022-11-07 15:54:40 +09:00
Nobuyoshi Nakada b02b8e7756 Let other test runners follow the change of GNU make 4.4 jobserver 2022-11-07 10:08:30 +09:00
Nobuyoshi Nakada c757c4e054 sitelibdir makes no sense in ruby itself 2022-03-04 15:56:03 +09:00
Nobuyoshi Nakada 0bbfb6a37b Fix error when srcdir not found
So that `spec/mspec/bin/mspec --help` works at least.
2021-10-18 11:44:20 +09:00
Nobuyoshi Nakada e1e3657746 Simplify srcdir fallback 2021-10-18 11:43:50 +09:00
eregon aaf07f7ad5 Adapt tools to follow spec/rubyspec => spec/ruby rename
* [Misc #13792] [ruby-core:82287]
* Prefer test-spec over test-rubyspec in spec/README.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59980 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-09-20 20:19:54 +00:00
nobu 442273fad3 default.mspec: suppress warnings
* spec/default.mspec: suppress tons of useless use of == in void
  context warnings.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59729 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-09-03 00:32:27 +00:00
nobu 9bf9d0ef42 default.mspec: limit cores
* spec/default.mspec (MSpecScript::JobServer#cores): limit max
  number of processors, not to acquire tokens more than necessary.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59103 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-06-16 23:59:33 +00:00
nobu f8fbb8bc11 default.mspec: remove useless flags
* spec/default.mspec: removed -I options for useless or non-
  existent paths from flags.  there is no library scripts and .ext
  directory in the source directory.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58949 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-05-29 05:19:51 +00:00
nobu 912fc58353 default.mspec: ignore unavailable FDs
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58727 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-05-15 10:32:30 +00:00
eregon e9628d9770 * spec/default.mspec: only require rbconfig if is it not already.
Useful when running spec/mspec/bin/mspec directly.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58592 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-05-07 12:00:58 +00:00
eregon c0fff4e0f6 Use require to load rbconfig in default.mspec
* Otherwise it would be loaded twice.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58484 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-04-25 19:34:07 +00:00
ko1 de1a9d6565 revert r58478 and r58479 because they do not support not in-place build
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58480 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-04-25 17:24:06 +00:00
eregon fc8a2c2f46 Use require_relative to load rbconfig in default.mspec
* Otherwise it would load it twice.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58479 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-04-25 12:45:36 +00:00
eregon 7a7744a42f Remove useless else which produced a warning
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58477 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-04-25 12:45:14 +00:00
nobu 07cfb683a4 default.mspec: defer job tokens
* spec/default.mspec (MSpecScript::JobServer#cores): defer getting
  job tokens until required.  when running only one spec file,
  `-j` option has no effect.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58282 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-04-09 01:23:02 +00:00
nobu 18f4cf13b5 default.mspec: job server
* spec/default.mspec: override MSpecScript#cores by the tokens
  from the parent make job server.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58251 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-04-05 01:36:21 +00:00
nobu e3fa4ec154 default.mspec: end of options
* spec/default.mspec (MSpecScript): add the end of options to
  runruby.rb, to fix failure at ruby/spec@a0e55db.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56682 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-11-09 02:42:30 +00:00
nobu 673e470d8b default.mspec: OBJDIR
* spec/default.mspec: set object directory for optional/capi, not
  to pollute the source directory.
  https://github.com/ruby/spec/pull/247

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54666 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-04-21 21:59:01 +00:00
nobu 27f74fe7d4 spec/default.mspec: reduce expand_path
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54665 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-04-21 21:38:21 +00:00
hsbt a96c88eca1 * spec/default.mspec: use default configuration file name.
https://github.com/ruby/rubyspec/commit/cc69f337b06362e5607ffa3e3ad40ef7494960cf

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49753 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-02-25 13:25:11 +00:00
hsbt 8e1839093e * spec/default.mspec: remove specific version number.
https://github.com/ruby/rubyspec/commit/7a909e925c1baa9c700bd44af9241aef6e596714

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49752 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-02-25 13:22:17 +00:00
nobu 76c7c267a0 default.mspec: use RbConfig::CONFIG
* spec/default.mspec (config): use RbConfig::CONFIG directly,
  loading with fake.rb.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49604 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-02-15 03:24:18 +00:00
nobu 42dee95b7e default.mspec: no -I- flag
* spec/default.mspec (flags): -I- has been no longer used since
  long ago, and "." has not been in the default load path list too.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49603 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-02-15 03:24:11 +00:00
svn 52e0f11b35 * remove trailing spaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47211 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-08-17 23:04:23 +00:00
hsbt 70ea6d28c1 * spec/default.mspec: use 2.2 definition.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47209 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-08-17 23:04:10 +00:00
naruse e0e479fbc5 * spec/default.mspec: expand relative path for ruby_exe which uses
them with Dir.chdir; it breaks relative paths, for example
  core/kernel/exec_spec.rb.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35349 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-04-16 09:23:50 +00:00
naruse b5dc2576cc * ext/mkext.rb: remove purelib, fixes a bug in r28440, r28441.
* spec/default.mspec: ditto.

* template/Doxyfile.tmpl: ditto.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28843 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-08-03 05:48:05 +00:00
yugui 8f3e3995df * spec/default.mspec (config): . is no longer in $:.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27680 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-08 16:04:22 +00:00
yugui 7378c8fa61 * spec/default.mspec: follows runruby.rb's move at r23542.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23546 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-05-22 15:22:18 +00:00