tool/test/runner.rb: support --test-target-dir option

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.
This commit is contained in:
Yusuke Endoh 2019-07-21 19:19:08 +09:00
parent 523fec8a4b
commit 24712eeec3
4 changed files with 20 additions and 49 deletions

View file

@ -856,9 +856,6 @@ module Test
def setup_options(parser, options)
super
parser.separator "globbing options:"
parser.on '-b', '--basedir=DIR', 'Base directory of test suites.' do |dir|
options[:base_directory] = dir
end
parser.on '-x', '--exclude REGEXP', 'Exclude test files on pattern.' do |pattern|
(options[:reject] ||= []) << pattern
end