From 793c649f651945c995b4b95383d26495e6cacb7d Mon Sep 17 00:00:00 2001 From: aamine Date: Sat, 24 Feb 2007 10:28:36 +0000 Subject: [PATCH] * bootstraptest/runner.rb: new option -v,--verbose. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11868 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 4 ++++ bootstraptest/runner.rb | 9 +++++++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 9f93d90544..bb50879e47 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Sat Feb 24 19:28:23 2007 Minero Aoki + + * bootstraptest/runner.rb: new option -v,--verbose. + Sat Feb 24 18:55:50 2007 Minero Aoki * yarvtest/test_method.rb: removed (merged to bootstraptest). diff --git a/bootstraptest/runner.rb b/bootstraptest/runner.rb index f47ecd9e6e..6ad37d7afd 100644 --- a/bootstraptest/runner.rb +++ b/bootstraptest/runner.rb @@ -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