* bootstraptest/runner.rb: add a stress test (-s).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13442 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
d5e687b724
commit
34530b1ad3
@ -1,3 +1,7 @@
|
|||||||
|
Fri Sep 14 16:17:30 2007 Koichi Sasada <ko1@atdot.net>
|
||||||
|
|
||||||
|
* bootstraptest/runner.rb: add a stress test (-s).
|
||||||
|
|
||||||
Fri Sep 14 16:14:28 2007 Koichi Sasada <ko1@atdot.net>
|
Fri Sep 14 16:14:28 2007 Koichi Sasada <ko1@atdot.net>
|
||||||
|
|
||||||
* vm.h, eval_intern.h: move some macros to eval_intern.h.
|
* vm.h, eval_intern.h: move some macros to eval_intern.h.
|
||||||
|
@ -59,6 +59,8 @@ def main
|
|||||||
when /\A--dir=(.*)/
|
when /\A--dir=(.*)/
|
||||||
dir = $1
|
dir = $1
|
||||||
true
|
true
|
||||||
|
when /\A(--stress|-s)/
|
||||||
|
$stress = true
|
||||||
when /\A(-q|--q(uiet))\z/
|
when /\A(-q|--q(uiet))\z/
|
||||||
quiet = true
|
quiet = true
|
||||||
true
|
true
|
||||||
@ -70,6 +72,7 @@ Usage: #{File.basename($0, '.*')} --ruby=PATH [--sets=NAME,NAME,...]
|
|||||||
--sets=NAME,NAME,... Name of test sets.
|
--sets=NAME,NAME,... Name of test sets.
|
||||||
--dir=DIRECTORY Working directory.
|
--dir=DIRECTORY Working directory.
|
||||||
default: /tmp/bootstraptest.tmpwd
|
default: /tmp/bootstraptest.tmpwd
|
||||||
|
-s, --stress stress test.
|
||||||
-v, --verbose Output test name before exec.
|
-v, --verbose Output test name before exec.
|
||||||
-q, --quiet Don\'t print header message.
|
-q, --quiet Don\'t print header message.
|
||||||
-h, --help Print this message and quit.
|
-h, --help Print this message and quit.
|
||||||
@ -180,6 +183,7 @@ end
|
|||||||
def get_result_string(src)
|
def get_result_string(src)
|
||||||
if @ruby
|
if @ruby
|
||||||
File.open('bootstraptest.tmp.rb', 'w') {|f|
|
File.open('bootstraptest.tmp.rb', 'w') {|f|
|
||||||
|
f.puts "GC.stress = true" if $stress
|
||||||
f.puts "print(begin; #{src}; end)"
|
f.puts "print(begin; #{src}; end)"
|
||||||
}
|
}
|
||||||
begin
|
begin
|
||||||
|
Loading…
x
Reference in New Issue
Block a user