2003-12-02 12:31:44 +00:00
|
|
|
#!/usr/bin/env ruby
|
|
|
|
require 'test/unit'
|
2008-10-19 15:59:35 +00:00
|
|
|
Test::Unit.setup_argv {|files|
|
|
|
|
if files.empty?
|
|
|
|
puts "Usage: testrb [options] tests..."
|
|
|
|
exit 1
|
|
|
|
end
|
2008-12-16 13:56:13 +00:00
|
|
|
if files.size == 1
|
|
|
|
$0 = File.basename(files[0])
|
|
|
|
else
|
|
|
|
$0 = files.to_s
|
|
|
|
end
|
2008-10-19 15:59:35 +00:00
|
|
|
files
|
|
|
|
}
|