2003-12-02 12:31:44 +00:00
|
|
|
#!/usr/bin/env ruby
|
|
|
|
require 'test/unit'
|
2011-02-11 12:41:58 +00:00
|
|
|
tests = Test::Unit::AutoRunner.new(true)
|
|
|
|
tests.options.banner.sub!(/\[options\]/, '\& tests...')
|
|
|
|
unless tests.process_args(ARGV)
|
|
|
|
abort tests.options.banner
|
|
|
|
end
|
2011-02-12 15:29:24 +00:00
|
|
|
files = tests.to_run
|
2011-02-11 12:41:58 +00:00
|
|
|
$0 = files.size == 1 ? File.basename(files[0]) : files.to_s
|
|
|
|
exit tests.run
|