mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* bootstraptest/runner.rb: new option -v,--verbose.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11868 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
e9ee00eead
commit
793c649f65
2 changed files with 11 additions and 2 deletions
|
@ -1,3 +1,7 @@
|
|||
Sat Feb 24 19:28:23 2007 Minero Aoki <aamine@loveruby.net>
|
||||
|
||||
* bootstraptest/runner.rb: new option -v,--verbose.
|
||||
|
||||
Sat Feb 24 18:55:50 2007 Minero Aoki <aamine@loveruby.net>
|
||||
|
||||
* yarvtest/test_method.rb: removed (merged to bootstraptest).
|
||||
|
|
|
@ -9,6 +9,7 @@ require 'fileutils'
|
|||
|
||||
def main
|
||||
@ruby = nil
|
||||
@verbose = false
|
||||
dir = 'bootstraptest.tmpwd'
|
||||
tests = nil
|
||||
ARGV.delete_if {|arg|
|
||||
|
@ -20,11 +21,14 @@ def main
|
|||
tests = Dir.glob("#{File.dirname($0)}/test_{#{$1}}*.rb")
|
||||
puts tests.map {|path| File.basename(path) }.inspect
|
||||
true
|
||||
when /\A(-v|--v(erbose))\z/
|
||||
@verbose = true
|
||||
when /\A(-h|--h(elp)?)\z/
|
||||
puts(<<-End)
|
||||
Usage: #{File.basename($0, '.*')} --ruby=PATH [--sets=NAME,NAME,...]
|
||||
--sets=NAME,NAME,... Name of test sets.
|
||||
--help Print this message and quit.
|
||||
--sets=NAME,NAME,... Name of test sets.
|
||||
-v, --verbose Output test name before exec.
|
||||
-h, --help Print this message and quit.
|
||||
End
|
||||
exit 0
|
||||
else
|
||||
|
@ -66,6 +70,7 @@ end
|
|||
|
||||
def assert_equal(expected, really)
|
||||
newtest
|
||||
$stderr.puts "\##{@count} #{@location}" if @verbose
|
||||
restr = get_result_string(really)
|
||||
check_coredump
|
||||
if expected == restr
|
||||
|
|
Loading…
Reference in a new issue