Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

32 lines (28 sloc) 1.087 kB
if ENV['SKIP_RUBOTO_UPDATE_TEST']
puts 'Detected SKIP_RUBOTO_UPDATE_TEST environment variable. Skipping Ruboto update test.'
else
require File.expand_path('updated_example_test_methods', File.dirname(__FILE__))
require File.expand_path('update_test_methods', File.dirname(__FILE__))
# TODO(uwe): Delete obsolete examples when we stop supporting updating from them.
Dir.chdir "#{RubotoTest::PROJECT_DIR}/examples/" do
Dir["#{RubotoTest::APP_NAME}_*_tools_r*.tgz"].each do |f|
next unless f =~ /^#{RubotoTest::APP_NAME}_(.*)_tools_r(.*)\.tgz$/
ruboto_version = $1
tools_version = $2
self.class.class_eval <<EOF
class RubotoUpdatedExample#{ruboto_version.gsub('.', '_')}Tools#{tools_version}Test < Test::Unit::TestCase
include UpdatedExampleTestMethods
def setup
super('#{ruboto_version}', '#{tools_version}')
end
end
class RubotoUpdate#{ruboto_version.gsub('.', '_')}Tools#{tools_version}Test < Test::Unit::TestCase
include UpdateTestMethods
def setup
super('#{ruboto_version}', '#{tools_version}')
end
end
EOF
end
end
end
Jump to Line
Something went wrong with that request. Please try again.