Update the LoadTesting framework.
Permit use of Git while still supporting Subversion. Improve the script structure and reduce dependence on hard-coded paths.
This commit is contained in:
parent
f382ec0468
commit
4f085bcdfe
20 changed files with 120 additions and 70 deletions
33
utilities/LoadTesting/scripts/subscripts/common.rb
Normal file
33
utilities/LoadTesting/scripts/subscripts/common.rb
Normal file
|
@ -0,0 +1,33 @@
|
|||
#
|
||||
# The path to the LoadTesting directory. Everything is based on this
|
||||
#
|
||||
@home = File.expand_path("../..", File.dirname(__FILE__))
|
||||
|
||||
#
|
||||
# 'require' should look in the scripts directory
|
||||
#
|
||||
$: << File.expand_path('scripts', @home)
|
||||
|
||||
#
|
||||
# convenience methods to access files
|
||||
#
|
||||
def version_file(path)
|
||||
"#{@home}/versions/#{@version_name}/#{path}"
|
||||
end
|
||||
|
||||
def distro_file(path)
|
||||
"#{@home}/distros/#{@distro_name}/#{path}"
|
||||
end
|
||||
|
||||
def site_file(path)
|
||||
"#{@home}/sites/#{@site_name}/#{path}"
|
||||
end
|
||||
|
||||
def test_file(path)
|
||||
"#{@home}/testinfo/#{path}"
|
||||
end
|
||||
|
||||
#
|
||||
# All of the scripts need to load these parms. (Except _setVersion and _setTest)
|
||||
#
|
||||
require 'subscripts/loadParms'
|
Loading…
Add table
Add a link
Reference in a new issue