ruby-changes:48185
From: k0kubun <ko1@a...>
Date: Sun, 22 Oct 2017 00:39:39 +0900 (JST)
Subject: [ruby-changes:48185] k0kubun:r60299 (trunk): driver.rb: add option to specify target with rbenv
k0kubun 2017-10-22 00:39:35 +0900 (Sun, 22 Oct 2017) New Revision: 60299 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=60299 Log: driver.rb: add option to specify target with rbenv [close GH-1724] Modified files: trunk/benchmark/driver.rb Index: benchmark/driver.rb =================================================================== --- benchmark/driver.rb (revision 60298) +++ benchmark/driver.rb (revision 60299) @@ -381,6 +381,11 @@ if __FILE__ == $0 https://github.com/ruby/ruby/blob/trunk/benchmark/driver.rb#L381 opt[:execs] << path } } + o.on('--rbenv [VERSIONS]', 'Specify benchmark targets with rbenv version (vX.X.X;vX.X.X;...)'){|v| + v.split(/;/).each{|version| + opt[:execs] << "#{version}::#{`RBENV_VERSION='#{version}' rbenv which ruby`.rstrip}" + } + } o.on('-d', '--directory [DIRECTORY]', "Benchmark suites directory"){|d| opt[:dir] = d } -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/