diff options
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 fe827f921c..f9ed25a931 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)) |