1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/bin/testrb
yugui aa818c8c86 merges r20801 from trunk into ruby_1_9_1.
* bin/testrb: set $0.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@20833 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-17 06:18:45 +00:00

14 lines
247 B
Ruby
Executable file

#!/usr/bin/env ruby
require 'test/unit'
Test::Unit.setup_argv {|files|
if files.empty?
puts "Usage: testrb [options] tests..."
exit 1
end
if files.size == 1
$0 = File.basename(files[0])
else
$0 = files.to_s
end
files
}