diff options
author | ryan <ryan@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-10-10 06:15:29 +0000 |
---|---|---|
committer | ryan <ryan@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-10-10 06:15:29 +0000 |
commit | ce628b7865f8e08659660008bd775c81cb80c271 (patch) | |
tree | 7b1dc401609e2dabf7bb5c4e913362beb6cefde0 /test/runner.rb | |
parent | 87de164d4cfd75ccd54c3abf37465303f96778f8 (diff) | |
download | ruby-ce628b7865f8e08659660008bd775c81cb80c271.tar.gz ruby-ce628b7865f8e08659660008bd775c81cb80c271.tar.xz ruby-ce628b7865f8e08659660008bd775c81cb80c271.zip |
Fixed missing test/unit.rb, bad svn merge. Rolled back test/runner.rb
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19743 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/runner.rb')
-rw-r--r-- | test/runner.rb | 44 |
1 files changed, 1 insertions, 43 deletions
diff --git a/test/runner.rb b/test/runner.rb index fe827f921..f9ed25a93 100644 --- a/test/runner.rb +++ b/test/runner.rb @@ -6,46 +6,4 @@ rcsid = %w$Id$ Version = rcsid[2].scan(/\d+/).collect!(&method(:Integer)).freeze Release = rcsid[3].freeze -class Module - def tu_deprecation_warning old, new = nil, kaller = nil - # stfu - for now... - end -end - -test_dir = File.dirname(__FILE__) - -# not sure why these are needed now... but whatever -$:.push(*Dir[File.join(test_dir, '*')].find_all { |path| File.directory? path }) - -test_files = (Dir[File.join(test_dir, "test_*.rb")] + - Dir[File.join(test_dir, "**/test_*.rb")]) - -files = [] -other = [] - -until ARGV.empty? do - arg = ARGV.shift - case arg - when /^-x$/ then - filter = ARGV.shift - test_files.reject! { |f| f =~ /#{filter}/ } - when /^--$/ then - other.push(*ARGV) - ARGV.clear - break - when /^-(n|-name)$/ then - other.push arg, ARGV.shift - when /^-/ then - other << arg - else - files << arg - end -end - -test_files = test_files.grep(Regexp.union(*files)) unless files.empty? - -ARGV.replace other # this passes through to miniunit - -test_files.each do |test| - require test -end +exit Test::Unit::AutoRunner.run(true, File.dirname($0)) |