aboutsummaryrefslogtreecommitdiffstats
path: root/tool/lib
Commit message (Collapse)AuthorAgeFilesLines
* Removed WEBrick and that testsHiroshi SHIBATA2024-07-1136-7119/+0
| | | | We can handle uri, time and others without `make test-all` dependencies now.
* Move the file location of launchable.rbNaoto Ono2024-07-082-1/+1
|
* Integrate Launchable into make btestNaoto Ono2024-07-082-89/+93
|
* Enable LeakChecker for RJIT previously disabled for MJIT (#10998)Alan Wu2024-06-141-3/+1
| | | | RJIT doesn't spawn subprocesses so there should now be no need to special case it.
* Re-use strscan with ruby repoHiroshi SHIBATA2024-05-201-1/+2
|
* Revert "Update revision.h if branch unmatch not only revision"Nobuyoshi Nakada2024-05-091-3/+2
| | | | | This reverts commit 5a332940ed2f809cb17af7e4d068089b6e1fa6ca. Something does not work well on Github Actions.
* Update revision.h if branch unmatch not only revision [ci skip]Nobuyoshi Nakada2024-05-081-2/+3
|
* Show the caller location of assertion methodsNobuyoshi Nakada2024-05-081-9/+21
| | | | | | Not only defined in `Test::Unit` or `CoreAssertions`, also show the caller location of assertion methods defined in the current class or ancestors.
* [PRISM] Enable test_methoddef_endless_commandKevin Newton2024-05-071-1/+8
|
* Traverse tmpdir under chdirNobuyoshi Nakada2024-04-231-5/+7
|
* Shorten tmpdir pathNobuyoshi Nakada2024-04-231-8/+18
|
* [DOC] Tweek a commentNobuyoshi Nakada2024-04-221-2/+2
|
* Extract `list_tree` as a method and separate from removalsNobuyoshi Nakada2024-04-221-30/+56
|
* Show left tmpdir recursivelyNobuyoshi Nakada2024-04-221-16/+22
|
* Windows does not have "/tmp" path usuallyNobuyoshi Nakada2024-04-221-1/+3
|
* Fix method nameNobuyoshi Nakada2024-04-201-1/+1
|
* Show left files infoNobuyoshi Nakada2024-04-191-1/+35
|
* Use isolated temporary directory in test-all too for RubyGems testsNobuyoshi Nakada2024-04-191-0/+20
|
* Make `Output.new` accepts keyword argumentsNobuyoshi Nakada2024-04-191-4/+9
|
* Launchable: Add lineNumber fieldNaoto Ono2024-04-031-2/+6
|
* Launchable: Refactor the logic of JsonStreamWriterNaoto Ono2024-04-021-35/+15
|
* Use www.rfc-editor.org for RFC text.Hiroshi SHIBATA2024-03-281-1/+1
| | | | | | | | | | | | | We use the following site for that now: * https://tools.ietf.org/ or http * https://datatracker.ietf.org or http Today, IETF said the official site of RFC is www.rfc-editor.org. FYI: https://authors.ietf.org/en/references-in-rfcxml I replaced them to www.rfc-editor.org.
* Add more abstract decorations for messagingNobuyoshi Nakada2024-03-181-1/+2
|
* [Feature #20293] Add `Warning.categories`Nobuyoshi Nakada2024-03-141-1/+3
|
* Don't need to remove ruby2_keywords dependency from drbHiroshi SHIBATA2024-03-011-2/+1
|
* Inform failures in parallel tests before retryingNobuyoshi Nakada2024-02-291-1/+9
| | | | | Displays for each failure which test it actually occurred in. The output destination follows the --{stdout,stderr}-on-failure option.
* Skip assert_no_memory_leak when ASAN is enabledKJ Tsanaktsidis2024-02-281-0/+8
| | | | | | | | ASAN greatly increases the memory footprint of Ruby, so these static thresholds are not appropriate. There's no real need to run these tests under ASAN. [Bug #20274]
* Exclude `.mailmap` from snapshots [ci skip]Nobuyoshi Nakada2024-02-251-0/+1
| | | | It is only for old commits, useless without full repository logs.
* Add Launchable into CINaoto Ono2024-02-232-134/+198
|
* Skip under_gc_compact_stress on s390x (#10073)Takashi Kokubun2024-02-221-0/+1
|
* Adjust indent [ci skip]Nobuyoshi Nakada2024-02-221-5/+6
|
* Save the performance warning flagNobuyoshi Nakada2024-02-221-1/+5
|
* Add `Test::Unit::TestCase#method_name`Nobuyoshi Nakada2024-02-211-0/+3
| | | | For the compatibility with test-unit gem.
* Split path.rb from mkrunnable.rbNobuyoshi Nakada2024-02-181-0/+101
|
* Fixed dependencies list formatHiroshi SHIBATA2024-02-161-7/+7
|
* Clear runtime dependencies if default gems is specified.Hiroshi SHIBATA2024-02-161-0/+12
| | | | | | 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.
* Show the method owner in backtracesYusuke Endoh2024-02-151-1/+1
| | | | | | | | | | | | ``` test.rb:1:in 'Object#toplevel_meth': unhandled exception from test.rb:4:in 'Foo.class_meth' from test.rb:6:in 'Foo#instance_meth' from test.rb:11:in 'singleton_meth' from test.rb:13:in '<main>' ``` [Feature #19117]
* Add newline between end and defNaoto Ono2024-01-311-0/+10
|
* Add the ability to generate Launchable test reportsNaoto Ono2024-01-311-0/+120
|
* Don't create T_MATCH object if /regexp/.match(string) doesn't matchLuke Gruber2024-01-011-0/+8
| | | | Fixes [Bug #20104]
* Exclude [ci skip] commits from ChangeLogNobuyoshi Nakada2023-12-281-1/+4
|
* Exclude dependabot from ChangeLog [ci skip]Nobuyoshi Nakada2023-12-281-0/+3
|
* Get rid of obsoleted RJITFirstTakashi Kokubun2023-12-221-12/+4
| | | | | It was renamed from test_mjit, but we did not maintain it as test_rjit. We test RJIT very differently.
* Support `GC.auto_compact = :empty` on debug buildsPeter Zhu2023-12-191-2/+2
| | | | | | | 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.
* Fix NoMethodError on failKazuhiro NISHIYAMA2023-12-121-1/+1
| | | | | | | | | | | ``` .../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' ```
* Add bright colors and multiple attributes [ci skip]Nobuyoshi Nakada2023-12-101-3/+20
| | | | | | | | | | | | Not only: ``` $ ruby colorize.rb fail foo ``` Also: ``` $ ruby colorize.rb 'bright_blue;bold' foo ```
* Extract configuration and lookup methods [ci skip]Nobuyoshi Nakada2023-12-101-3/+10
|
* Fix compaction during ary_make_partialPeter Zhu2023-11-271-0/+9
| | | | | | 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.
* RubyVM::InstructionSequence.compile_file_prismKevin Newton2023-11-201-0/+9
| | | | | | | | * 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.
* Refactor the settings of test-all outYusuke Endoh2023-11-151-8/+2
| | | | | | | | | | | | | | | | | | | | | | | | | 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])} ^^^^^^^^^^ ```