diff options
| author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-09-30 00:31:59 +0000 |
|---|---|---|
| committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-09-30 00:31:59 +0000 |
| commit | 08c09e784058736fb96999b8cc0e2d9d85e1a997 (patch) | |
| tree | 75192bd934360d51e7d697f80422061310f197c7 | |
| parent | f83ff724cad84bed1e887c2653d9f03563879719 (diff) | |
| download | ruby-08c09e784058736fb96999b8cc0e2d9d85e1a997.tar.gz ruby-08c09e784058736fb96999b8cc0e2d9d85e1a997.tar.xz ruby-08c09e784058736fb96999b8cc0e2d9d85e1a997.zip | |
* test/runner.rb: glob for directories.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4630 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
| -rw-r--r-- | ChangeLog | 8 | ||||
| -rw-r--r-- | test/runner.rb | 9 |
2 files changed, 14 insertions, 3 deletions
@@ -1,3 +1,7 @@ +Tue Sep 30 09:31:56 2003 Nobuyoshi Nakada <nobu@ruby-lang.org> + + * test/runner.rb: glob for directories. + Tue Sep 30 09:11:43 2003 Yukihiro Matsumoto <matz@ruby-lang.org> * eval.c (rb_eval): while/until should not capture break unless @@ -79,9 +83,9 @@ Sun Sep 28 11:14:19 2003 Koji Arai <jca02266@nifty.ne.jp> * ext/digest/digest.c (Init_digest): `copy_object' was deprecated. `initialize_copy' should be defined. - + * ext/stringio/stringio.c (Init_stringio): ditto. - + Mon Sep 27 15:58:50 2003 NAKAMURA, Hiroshi <nahi@ruby-lang.org> * lib/soap/rpc/cgistub.rb: make logging severity threshold higher. diff --git a/test/runner.rb b/test/runner.rb index b02e2e068..5fbbd95fa 100644 --- a/test/runner.rb +++ b/test/runner.rb @@ -46,8 +46,15 @@ rescue OptionParser::ParseError end if argv.empty? - argv = Dir.glob(File.join(File.dirname(__FILE__), "**", "test_*.rb")).sort + argv = [File.dirname(__FILE__)] end +argv.collect! do |arg| + if File.directory?(arg) + Dir.glob(File.join(arg, "**", "test_*.rb")).sort + else + arg + end +end.flatten! argv.each do |tc_name| require tc_name |
