From: Dave Thomas Date: 2002-02-23T05:58:46+09:00 Subject: Re: Rubicon Failure ; writes: > Could you post the script/tools for doing this? I've got access > to lot's of different architectures at work and could spend > some time doing exactly this. Full of hard-coded paths, but, for what it's worth... :) def run(cmd) system(cmd) raise "#{cmd} failed: #$?" if $? != 0 end Dir.chdir("/tc/dl/ruby/ruby1.7") ENV['PATH'] += ":/tc/ruby1.7/bin" run("cvs update -d") run("make") run("make install") Dir.chdir("/tc/work/ruby/rubicon") run("cvs update -d") result = nil IO.popen("/tc/ruby1.7/bin/ruby AllTests.rb") do |p| result = p.read end if $? != 0 and result IO.popen('mail -s "Rubicon report" matz@ruby-lang.org dave@pragprog.com', "w") do |p| p.puts result end end Cheers Dave