mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
2 changed files with 8 additions and 0 deletions
|
@ -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>
|
||||
|
||||
* vm.h, eval_intern.h: move some macros to eval_intern.h.
|
||||
|
|
|
@ -59,6 +59,8 @@ def main
|
|||
when /\A--dir=(.*)/
|
||||
dir = $1
|
||||
true
|
||||
when /\A(--stress|-s)/
|
||||
$stress = true
|
||||
when /\A(-q|--q(uiet))\z/
|
||||
quiet = true
|
||||
true
|
||||
|
@ -70,6 +72,7 @@ Usage: #{File.basename($0, '.*')} --ruby=PATH [--sets=NAME,NAME,...]
|
|||
--sets=NAME,NAME,... Name of test sets.
|
||||
--dir=DIRECTORY Working directory.
|
||||
default: /tmp/bootstraptest.tmpwd
|
||||
-s, --stress stress test.
|
||||
-v, --verbose Output test name before exec.
|
||||
-q, --quiet Don\'t print header message.
|
||||
-h, --help Print this message and quit.
|
||||
|
@ -180,6 +183,7 @@ end
|
|||
def get_result_string(src)
|
||||
if @ruby
|
||||
File.open('bootstraptest.tmp.rb', 'w') {|f|
|
||||
f.puts "GC.stress = true" if $stress
|
||||
f.puts "print(begin; #{src}; end)"
|
||||
}
|
||||
begin
|
||||
|
|
Loading…
Reference in a new issue