summaryrefslogtreecommitdiff
path: root/tool/lib
AgeCommit message (Collapse)Author
2025-12-15Add predicates for platformsNobuyoshi Nakada
2024-09-02Sync tool/lib/core_assertions.rb from masterTakashi Kokubun
It seems necessary to pass test-bundled-gems with REXML.
2024-06-04Merge RubyGems 3.5.11 and Bundler 2.5.11 for Ruby 3.3 (#10870)Hiroshi SHIBATA
Co-authored-by: Nobuyoshi Nakada <nobu@ruby-lang.org>
2024-06-04merge revision(s) 9f708d48f6df37ee9600db9d51b57a156609a13b, ↵Takashi Kokubun
0301473fb523c71d8cdc4966971f31f502001185, 874e9fc34d728f8e2444d15aa6759befd217c464, 7f0e26b7f99bf76408569892ce20318501f74729: [Backport #20516] Clear runtime dependencies if default gems is specified. The current build system uses runtime dependencies from only `.bundle` directory. We shouldn't install runtime dependencies from rubygems.org when `make test-bundled-gems` is invoked. Fixed dependencies list format Don't need to remove ruby2_keywords dependency from drb Re-use strscan with ruby repo
2024-05-29Skip under_gc_compact_stress on s390x (#10073)Takashi Kokubun
2024-01-30merge revision(s) e12d4c654e3cb7a4473014610bc3bae41aaf811e: [Backport #20104]NARUSE, Yui
Don't create T_MATCH object if /regexp/.match(string) doesn't match Fixes [Bug #20104] --- re.c | 9 ++++++--- test/ruby/test_regexp.rb | 12 ++++++++++++ tool/lib/envutil.rb | 8 ++++++++ 3 files changed, 26 insertions(+), 3 deletions(-)
2023-12-22Get rid of obsoleted RJITFirstTakashi Kokubun
It was renamed from test_mjit, but we did not maintain it as test_rjit. We test RJIT very differently.
2023-12-19Support `GC.auto_compact = :empty` on debug buildsPeter Zhu
This commit adds `GC.auto_compact = :empty` which will run auto-compaction sorting pages by empty slots so the most amount of objects will be moved. This will make it easier to write tests for auto-compaction.
2023-12-12Fix NoMethodError on failKazuhiro NISHIYAMA
``` .../tool/lib/colorize.rb:56:in `resolve_color': undefined method `gsub' for an instance of Symbol (NoMethodError) color.gsub(/\b[a-z][\w ]+/) do |n| ^^^^^ from .../tool/lib/colorize.rb:47:in `decorate' from .../tool/lib/test/unit.rb:1012:in `block in failed' ```
2023-12-10Add bright colors and multiple attributes [ci skip]Nobuyoshi Nakada
Not only: ``` $ ruby colorize.rb fail foo ``` Also: ``` $ ruby colorize.rb 'bright_blue;bold' foo ```
2023-12-10Extract configuration and lookup methods [ci skip]Nobuyoshi Nakada
2023-11-27Fix compaction during ary_make_partialPeter Zhu
The ary_make_shared call may allocate, which can trigger a GC compaction. This can cause the array to be embedded because it has a length of 0.
2023-11-20RubyVM::InstructionSequence.compile_file_prismKevin Newton
* Provide a new API compile_file_prism which mirrors compile_file but uses prism to parse/compile. * Provide the ability to run test-all with RUBY_ISEQ_DUMP_DEBUG set to "prism". If it is, we'll use the new compile_file_prism API to load iseqs during the test run.
2023-11-15Refactor the settings of test-all outYusuke Endoh
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-10-26tool test/unit/testcase: rename vars @passed, @@currentlukeg
to @__passed__, @@__current__. @passed is redefined in a few test suites, and this could lead to bugs. Also rename @options (Runner#options) to @__runner_options__, which is only used in make test-tool anyway.
2023-10-23Removed unnecessary libraries of sync_toolHiroshi SHIBATA
2023-10-21Fallback job status to normal if no ttyNobuyoshi Nakada
2023-10-20Added explicitly begin-end block for Ruby 2.4.Hiroshi SHIBATA
strscan, ipaddr and some default gems still support Ruby 2.4. After this, I extract this CoreAssertions to their repositories.
2023-10-18Handle `Timeout::Error` reported from workersNobuyoshi Nakada
2023-10-18Fix total count when filters givenNobuyoshi Nakada
2023-10-18Escape method names containing control charactersNobuyoshi Nakada
2023-10-17Prefer RbConfig.ruby over the 3.times fallback (#8691)Takashi Kokubun
It seems saner to use RbConfig.ruby than using ruby in a random ancestor directory.
2023-10-18Manage parallel test workers after timeoutNobuyoshi Nakada
2023-10-03Support regexp in log-fix [ci skip]Nobuyoshi Nakada
2023-09-23Improve VCS::GIT#format_changelog addessing [ci skip]Nobuyoshi Nakada
2023-09-12Suppress warning for shadowing outer local variableHiroshi SHIBATA
Notes: Merged: https://github.com/ruby/ruby/pull/8419
2023-08-29Expose Test.filter_backtrace for the default gems.Hiroshi SHIBATA
Notes: Merged: https://github.com/ruby/ruby/pull/8313
2023-08-23tool/lib/output.rb: Make `--color` option like GNU coreutilsNobuyoshi Nakada
2023-08-23tool/lib/output.rb: Add `--create-only` and `--overwrite` optionsNobuyoshi Nakada
2023-08-23tool/lib/output.rb: Add `--no-color` optionNobuyoshi Nakada
2023-08-08Add message for `--ruby` option [ci skip]Nobuyoshi Nakada
2023-08-02Fix wrong assignmentNobuyoshi Nakada
2023-08-02Allow to override environment variables for debugNobuyoshi Nakada
2023-07-10Use `File::NULL` instead of hard coded null device namesNobuyoshi Nakada
Notes: Merged: https://github.com/ruby/ruby/pull/8050
2023-06-03Exit with a failure if any test files failed to loadNobuyoshi Nakada
Notes: Merged: https://github.com/ruby/ruby/pull/7897
2023-05-09Allow to use development version of bundled gems for packagingHiroshi SHIBATA
Notes: Merged: https://github.com/ruby/ruby/pull/7781
2023-05-09We should not validate development version of bundled gems with fetch timing.Hiroshi SHIBATA
We want to notify above situation when release time. So, I move this check into ruby/actions. Notes: Merged: https://github.com/ruby/ruby/pull/7781
2023-04-29core_assertions.rb: Support old rubiesNobuyoshi Nakada
Some symbol argument might not be accepted by Process.clock_gettime. Notes: Merged: https://github.com/ruby/ruby/pull/7773
2023-04-28Copy also helper.rb [ci skip]Nobuyoshi Nakada
Notes: Merged: https://github.com/ruby/ruby/pull/7769
2023-04-06core_assertions.rb: Prefer CPU time clocksNobuyoshi Nakada
To prevent influence from other processes. Notes: Merged: https://github.com/ruby/ruby/pull/7661
2023-04-06core_assertions.rb: Extract common code blockNobuyoshi Nakada
Notes: Merged: https://github.com/ruby/ruby/pull/7661
2023-04-06core_assertions.rb: Tweak timeout limitNobuyoshi Nakada
Increase the timeout limit when variance at rehearsal is small. Notes: Merged: https://github.com/ruby/ruby/pull/7661
2023-04-02Skip assert_linear_performance for RJITTakashi Kokubun
2023-03-31Check if `Bundler::EnvironmentPreserver` is definedNobuyoshi Nakada
Only `Bundler` might be defined. `EnvironmentPreserver` and its `BUNDLER_PREFIX` would be defined together in the same file.
2023-03-28Check if Bundler is definedNobuyoshi Nakada
Notes: Merged: https://github.com/ruby/ruby/pull/7601
2023-03-23core_assertions.rb: Raise `Timeout::Error` explicitlyNobuyoshi Nakada
So that `assert_raise` inside the block works.
2023-03-22core_assertions.rb: Fix backward compatibility with pre 2.7Nobuyoshi Nakada
2023-03-22[DOC] Update comment of assert_pattern_listNobuyoshi Nakada
`pattern_list` may contain string since d903e7672637.
2023-03-22core_assertions.rb: Refine `assert_linear_performance`Nobuyoshi Nakada
* Calculate each timeout from the ratio of each factor to the first factor.
2023-03-18core_assertions.rb: Relax `assert_linear_performance`Nobuyoshi Nakada
* Use an `Enumerable` as factors, instead of three arguments. * Include `assert_operator` time in rehearsal time. * Round up max expected time. Notes: Merged: https://github.com/ruby/ruby/pull/7554