summaryrefslogtreecommitdiff
path: root/benchmark
diff options
context:
space:
mode:
authork0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-10-21 15:39:35 (GMT)
committerk0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-10-21 15:39:35 (GMT)
commit8949479e1a77ad62c054cd2db9b129f65c560f90 (patch)
treea0426dc5c3c9a2fe76df8a0ad1af5a9dc38f6916 /benchmark
parent3090169c9b5077ebcd051f9081c3a0baa8ff83e4 (diff)
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
Diffstat (limited to 'benchmark')
-rw-r--r--benchmark/driver.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/benchmark/driver.rb b/benchmark/driver.rb
index 36365af..20c8e25 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
}