aboutsummaryrefslogtreecommitdiffstats
path: root/tool/test
Commit message (Collapse)AuthorAgeFilesLines
* Rename RubyVM::MJIT to RubyVM::JITTakashi Kokubun2021-01-134-4/+4
| | | | | | | | because the name "MJIT" is an internal code name, it's inconsistent with --jit while they are related to each other, and I want to discourage future JIT implementation-specific (e.g. MJIT-specific) APIs by this rename. [Feature #17490]
* Move webrick library into internal test toolchainHiroshi SHIBATA2020-12-1024-0/+3804
|
* Guard all accesses to RubyVM::MJIT with defined?(RubyVM::MJIT) &&Benoit Daloze2020-12-042-2/+2
| | | | * Otherwise those tests, etc cannot run on alternative Ruby implementations.
* Workaround for Minitest5Hiroshi SHIBATA2020-05-081-0/+3
|
* MiniTest::Unit.options has default :seedKoichi Sasada2020-02-271-1/+0
| | | | | | | | MiniTest::Unit (superclass of Test::Unit::Runner) does not has default seed parameter, but assigned after initializing. However some tests use MiniTest::Unit without setup of seed option and it cases unexpected test failures. To solve this issue, add default seed parameter 42.
* `srand($seed)` at the beginning of each testKoichi Sasada2020-02-271-0/+1
| | | | | | To avoid `srand(0)` effect in the other tests, call `srand($seed)` at the beginning of each test (setup). [Feature #16655]
* call GC.compact after each test.Koichi Sasada2019-12-121-0/+1
| | | | | RUBY_TEST_GC_COMPACT=1 enables GC.compact checker which calls GC.compact after each test.
* Make TracePoint.stat a singleton method again (#2726)Alan Wu2019-12-041-1/+1
| | | [Bug #16399]
* tool/lib/test/unit/parallel.rb: fail explicitly when failing to get ioYusuke Endoh2019-12-031-0/+2
| | | | | | | `(ulimit -n 30; make test-tool)` fails with unexplicit message: "undefined method `write' for nil:NilClass" due to lack of stdout. This change makes it explicit. [Bug #5577]
* use builtin for TracePoint.Koichi Sasada2019-11-081-2/+1
| | | | Define TracePoint in trace_point.rb and use __builtin_ syntax.
* fix assertion number.Koichi Sasada2019-10-021-1/+1
| | | | | On parallel test, there are additional tests because of implicit checkers which are enabled on 84cbce3d88.
* Enable checkers on parallel test.Koichi Sasada2019-10-021-4/+4
| | | | | | | | | parallel test (`make test-all TESTS=-j8`) runs tests on specified number of processes. However, some test checkers written in `runner.rb` are not loaded. This fix enable these checkers on parallel tests. See also: https://github.com/ruby/ruby/pull/2508
* Get rid of failures about coverageNobuyoshi Nakada2019-07-251-1/+1
| | | | | Run test suites explicitly instead of auto-running, to get rid of failures when simplecov is not installed but COVERAGE is set.
* Separated tool/test/runner.rb and test/runner.rbNobuyoshi Nakada2019-07-251-32/+16
| | | | | | As `make test-tool` does not use gems, and no Rubygems stuffs is needed, so moved such things to test/runner.rb. Also no longer nees `--test-target-dir` option.
* Moved NoMemoryError hook to Test::Unit::AutoRunnerNobuyoshi Nakada2019-07-251-7/+1
|
* @@project_dir in Gem::TestCase is no longer usedNobuyoshi Nakada2019-07-241-6/+0
|
* Fixed exception messageNobuyoshi Nakada2019-07-221-1/+1
|
* Only the first argument can be --test-target-dir optionNobuyoshi Nakada2019-07-221-8/+6
| | | | | Raise the proper exception when that option is not given but non-option argument is.
* tool/test/runner.rb: support --test-target-dir optionYusuke Endoh2019-07-211-2/+15
| | | | | | | | | | | tool/test/runner.rb had been copied from test/runner.rb. test/runner.rb was for `make test-all`, and tool/test/runner.rb was for `make test-testframework` and `make test-tool`. But I want to avoid the code clones. This change makes tool/test/runner.rb support --test-target-dir option which allows tool/test/runner.rb to run `make test-all`. Now we can remove test/runner.rb.
* Added test-tool target for the test suite of tool/test files.Hiroshi SHIBATA2019-07-151-0/+39
|
* Put jisx0208.rb to under the library directory.Hiroshi SHIBATA2019-07-151-1/+1
|
* Adjust minitest file pathNobuyoshi Nakada2019-07-021-1/+1
|
* Adjust minitest file pathNobuyoshi Nakada2019-07-021-1/+1
|
* Split test files for test-framework that are test-unit and minitest to tool ↵Hiroshi SHIBATA2019-07-0217-0/+2800
| | | | direcotry.
* tool/test/test_jisx0208.rb: Use `require_relative`kazu2019-02-071-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67016 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * enc/trans/EMOJI/*.src, enc/trans/emoji*, enc/x-emoji.c, ↵muraken2010-03-091-0/+40
test/ruby/enc/test_emoji.rb, tool/enc-emoji-citrus-gen.rb, tool/enc-emoji4unicode.rb, tool/jisx0208.rb, tool/test/test_jisx0208.rb: new encodings to support emoji charsets, which are used by Japanese mobile phones [ruby-dev:40528]. Thanks Yoji Shidara for a lot of contribution. * tool/transcode-tblgen.rb: modified for enc-emoji4unicode.rb. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26856 b2dd03c8-39d4-4d8f-98ff-823fe69b080e