/usr/lib/ruby/2.0.0/rake/runtest.rb is in libruby2.0 2.0.0.484-1ubuntu2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | require 'test/unit'
require 'test/unit/assertions'
require 'rake/file_list'
module Rake
include Test::Unit::Assertions
def run_tests(pattern='test/test*.rb', log_enabled=false)
FileList.glob(pattern).each { |fn|
$stderr.puts fn if log_enabled
begin
require fn
rescue Exception => ex
$stderr.puts "Error in #{fn}: #{ex.message}"
$stderr.puts ex.backtrace
assert false
end
}
end
extend self
end
|