diff --git a/ChangeLog b/ChangeLog index 7d2e344bb0..5bb792f031 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Fri Sep 14 16:17:30 2007 Koichi Sasada + + * bootstraptest/runner.rb: add a stress test (-s). + Fri Sep 14 16:14:28 2007 Koichi Sasada * vm.h, eval_intern.h: move some macros to eval_intern.h. diff --git a/bootstraptest/runner.rb b/bootstraptest/runner.rb index 8a2597bcb2..502eb64857 100644 --- a/bootstraptest/runner.rb +++ b/bootstraptest/runner.rb @@ -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