summaryrefslogtreecommitdiff
path: root/tool
AgeCommit message (Collapse)Author
2019-08-20Removed unused literal assignments [ci skip]Nobuyoshi Nakada
2019-08-20Subjects may contain a comma [ci skip]Nobuyoshi Nakada
2019-08-20Fix some bundler specs (#2380)David Rodríguez
* These seem to consistenly pass already * Show actual command when running `make test-bundler` Current the setup command that installs the necessary gems for testing bundler was printed, but not the actual command that runs the tests. That was a bit confusing. * Borrow trick from setproctitle specs * A title that long doesn't get set sometimes No idea why, but the test doesn't need that the title is that long. * Fix most gem helper spec ruby-core failures * Fix the rest of the gem helper failures * Fix version spec by improving the assertion * Remove unnecessary `BUNDLE_RUBY` environment var We can use `RUBY` when necessary, and `BUNDLE_RUBY` is not a good name because bundler considers `BUNDLE_*` variables as settings. * Rename `BUNDLE_GEM` to `GEM_COMMAND` This is more descriptive I think, and also friendlier for bundler because `BUNDLE_` env variables are interpreted by bundler as settings, and this is not a bundler setting. This fixes one bundler spec failure in config specs against ruby-core. * Fix quality spec when run in core Use the proper path helper. * Fix dummy lib builder to never load default gems If a dummy library is named as a default gem, when requiring the library from its executable, the default gem would be loaded when running from core, because in core all default gems share path with bundler, and thus they are always in the $LOAD_PATH. We fix the issue by loading lib relatively inside dummy lib executables. * More exact assertions Sometimes I have the problem that I do some "print debugging" inside specs, and suddently the spec passes. This happens when the assertion is too relaxed, and the things I print make it match, specially when they are simple strings like "1.0" than can be easily be part of gem paths that I print for debugging. I fix this by making a more exact assertion. * Detect the correct shebang when ENV["RUBY"] is set * Relax assertion So that the spec passes even if another paths containing "ext" are in the load path. This works to fix a ruby-core issue, but it's a better assertion in general. We just want to know that the extension path was added. * Use folder structure independent path helper It should fix this spec for ruby-core. * Fix the last failing spec on ruby-core * Skip `bundle open <default_gem>` spec when no default gems
2019-08-19Omit version.h when mergingNAKAMURA Usaku
2019-08-18Use master branch instead of trunk.Hiroshi SHIBATA
2019-08-18Ignore tags on default gems from ruby core repository.Hiroshi SHIBATA
2019-08-18Gem::ConfigMap is deprecated nowHiroshi SHIBATA
2019-08-18Fix copy path of ruby/reline's testaycabta
2019-08-14Move some assertions to CoreAssertions. (#2354)SHIBATA Hiroshi
They are used by default gems like forwardable. * assert_raise_with_message * assert_warning * assert_warn Notes: Merged-By: hsbt <hsbt@ruby-lang.org>
2019-08-13Detect VCS from the current directory by default [ci skip]Nobuyoshi Nakada
2019-08-13Push commits notes too [ci skip]Nobuyoshi Nakada
2019-08-12Include commits notes in ChangeLogNobuyoshi Nakada
2019-08-12We did not have tool/ before checkoutTakashi Kokubun
anyway we don't need authorization here. Also retry does not seem to work in the original version, so let's extend this with retries as a separate github action later.
2019-08-12Stop relying on actions/checkoutTakashi Kokubun
because it randomly fails on authorization like: https://github.com/ruby/ruby/runs/190887455 Also the backoff seems too short. Maybe we need tool/travis_retry.sh for this too. Cloning ruby/ruby does not need authorization. We don't need to use actions/checkout.
2019-08-11Use `end_with?` instead of Regexp with missing escapeKazuhiro NISHIYAMA
2019-08-09complement `test_` prefix.Koichi Sasada
`make test-all TESTS=name` can specify running test files by name. name can be dirname ('dir/') or a file ('.../test_foo.rb'). This patch complement `test_` prefix for a test. So we only need to specify `TESTS=ruby/hash` which means `TESTS=ruby/test_hash.rb`.
2019-08-08Aliases capture_output to capture_io for test-unit compatiblity.Hiroshi SHIBATA
2019-08-07Added separator for failing commits from default gems.Hiroshi SHIBATA
2019-08-07Skip merge commit created by bundlerbot.Hiroshi SHIBATA
2019-08-07Refactor .travis.yml by introducing travis_retry.shTakashi Kokubun
Not using official travis_retry.bash, because it's not supporting to modify backoff seconds. https://github.com/travis-ci/travis-build/blob/0ad8f1886b2c31994d847e126dc5842b7b3513e3/lib/travis/build/bash/travis_retry.bash Not using official `travis_apt_get_update` function because it does not propagate exit status to be used by retries. https://github.com/travis-ci/travis-build/blob/0ad8f1886b2c31994d847e126dc5842b7b3513e3/lib/travis/build/bash/travis_apt_get_update.bash Co-Authored-By: Nobuyoshi Nakada <nobu@ruby-lang.org>
2019-08-05Moved FailDesc to EnvUtil.failure_descriptionNobuyoshi Nakada
So EnvUtil does not depends on test/unit.
2019-08-04Fix release post output for tool/format-releaseMarcus Stollsteimer
Different entries should be separated by an empty line. Closes: https://github.com/ruby/ruby/pull/2137
2019-08-03Move assert_ruby_status and assert_throw to CoreAssertions for default gems.Hiroshi SHIBATA
2019-08-03Added more attributes [ci skip]Nobuyoshi Nakada
2019-08-03Refine error messageNobuyoshi Nakada
Highlight failed command and suggest installing the command. [Bug #16042]
2019-08-02It can be share to use CoreAssertions for default gems.Hiroshi SHIBATA
ref. https://github.com/ruby/logger/pull/35
2019-07-31backtrace can be nil.Koichi Sasada
Surprisingly, on SystemStackError#backtrace can return nil.
2019-07-31Revert "add debug code"Koichi Sasada
This reverts commit e83ec207cd5fda973c41d6629d8504b515522b12.
2019-07-31add debug codeKoichi Sasada
2019-07-30Separate VCS::GIT#upstreamNobuyoshi Nakada
2019-07-27tool/merger.rb: execute 'svn update' after 'svn ci' to update revision info ↵nagachika
on working copy.
2019-07-27Skip the some of commits when sync default gems from upstream.Hiroshi SHIBATA
* Skip failed to sync commits because it needs to pick manually. * Skip empty commit.
2019-07-27Added ignore files to sync_default_gems_with_commits and make constant them.Hiroshi SHIBATA
2019-07-26Ignore Merge commit and insufficiency commit for ruby core repository.Hiroshi SHIBATA
2019-07-26Improve the commits list for cherry-picking from default gems.Hiroshi SHIBATA
* Ignore Merge commit from the commit lists before trying to pick commit. * Show the commits list at first.
2019-07-26Escape parentheses for syntax hilighting for VScode.Hiroshi SHIBATA
2019-07-26Adjust the test direcotry structure of rdoc.Hiroshi SHIBATA
2019-07-25Get rid of failures about coverageNobuyoshi Nakada
Run test suites explicitly instead of auto-running, to get rid of failures when simplecov is not installed but COVERAGE is set.
2019-07-25Separated tool/test/runner.rb and test/runner.rbNobuyoshi Nakada
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.
2019-07-25Use libraries in the base directory if givenNobuyoshi Nakada
2019-07-25Added --base-directory optionNobuyoshi Nakada
2019-07-25Moved NoMemoryError hookNobuyoshi Nakada
Moved NoMemoryError hook from AutoRunner.run to Runner#run, so it will work even in non-autorunning mode.
2019-07-25Moved NoMemoryError hook to Test::Unit::AutoRunnerNobuyoshi Nakada
2019-07-25Do not fetch remote tagsNobuyoshi Nakada
2019-07-24@@project_dir in Gem::TestCase is no longer usedNobuyoshi Nakada
2019-07-22Allways fetch the latest commit from default gems repository.Hiroshi SHIBATA
2019-07-22Fixed exception messageNobuyoshi Nakada
2019-07-22Only the first argument can be --test-target-dir optionNobuyoshi Nakada
Raise the proper exception when that option is not given but non-option argument is.
2019-07-21tool/test/runner.rb: support --test-target-dir optionYusuke Endoh
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.
2019-07-15Removed needless LOAD_PATH modification.Hiroshi SHIBATA
We can use require_relative now.