summaryrefslogtreecommitdiff
path: root/bin/testrb
blob: d03f057224629f132a7630f54b2183850fee658b (plain)
1
2
3
4
5
6
7
8
9
10
#!/usr/bin/env ruby
require 'test/unit'
tests = Test::Unit::AutoRunner.new(true)
tests.options.banner.sub!(/\[options\]/, '\& tests...')
unless tests.process_args(ARGV)
  abort tests.options.banner
end
p files = tests.to_run
$0 = files.size == 1 ? File.basename(files[0]) : files.to_s
exit tests.run