Skip to content

Commit

Permalink
* benchmark/driver.rb: enable specify label to executable.
Browse files Browse the repository at this point in the history
  (-e "ruby1::/path/to/ruby1; ruby2::/path/to/ruby2; ...")



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13608 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
ko1 committed Oct 3, 2007
1 parent 5dd4990 commit c5f2bba
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
5 changes: 5 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
Wed Oct 3 17:56:22 2007 Koichi Sasada <ko1@atdot.net>

* benchmark/driver.rb: enable specify label to executable.
(-e "ruby1::/path/to/ruby1; ruby2::/path/to/ruby2; ...")

Wed Oct 3 16:58:48 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>

* parse.y (parser_str_new, parser_yylex, rb_intern3): set code-range
Expand Down
10 changes: 8 additions & 2 deletions benchmark/driver.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,14 @@ def initialize execs, dir, opt = {}
e.strip!
next if e.empty?

v = `#{e} -v`.chomp
v.sub!(/ patchlevel \d+/, '')
if /(.+)::(.+)/ =~ e
# ex) ruby-a::/path/to/ruby-a
v = $1.strip
e = $2
else
v = `#{e} -v`.chomp
v.sub!(/ patchlevel \d+/, '')
end
[e, v]
}.compact

Expand Down

0 comments on commit c5f2bba

Please sign in to comment.