summaryrefslogtreecommitdiff
path: root/bootstraptest/runner.rb
diff options
context:
space:
mode:
authoraamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-02-24 10:28:36 +0000
committeraamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-02-24 10:28:36 +0000
commit793c649f651945c995b4b95383d26495e6cacb7d (patch)
tree66487d183e139d4d3f70bf4158a1f4b8e5eea04d /bootstraptest/runner.rb
parente9ee00eead94368dfd26a31bd4a7adbca64e991c (diff)
* bootstraptest/runner.rb: new option -v,--verbose.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11868 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'bootstraptest/runner.rb')
-rw-r--r--bootstraptest/runner.rb9
1 files changed, 7 insertions, 2 deletions
diff --git a/bootstraptest/runner.rb b/bootstraptest/runner.rb
index f47ecd9..6ad37d7 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