From 8949479e1a77ad62c054cd2db9b129f65c560f90 Mon Sep 17 00:00:00 2001 From: k0kubun Date: Sat, 21 Oct 2017 15:39:35 +0000 Subject: driver.rb: add option to specify target with rbenv [close GH-1724] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60299 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- benchmark/driver.rb | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'benchmark/driver.rb') diff --git a/benchmark/driver.rb b/benchmark/driver.rb index 36365af209..20c8e255fb 100644 --- a/benchmark/driver.rb +++ b/benchmark/driver.rb @@ -381,6 +381,11 @@ if __FILE__ == $0 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 } -- cgit v1.2.3