* 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:
aamine 2007-02-24 10:28:36 +00:00
Родитель e9ee00eead
Коммит 793c649f65
2 изменённых файлов: 11 добавлений и 2 удалений

Просмотреть файл

@ -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