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:
j2blake 2013-10-21 15:21:54 -04:00
parent f382ec0468
commit 4f085bcdfe
20 changed files with 120 additions and 70 deletions

View file

@ -12,12 +12,18 @@ Record that selection, along with the desired number of iterations and threads.
--------------------------------------------------------------------------------
=end
@test_parms_file = "#{File.dirname(__FILE__)}/subscripts/_current_test.rb"
begin
require File.expand_path('subscripts/common', File.dirname(__FILE__))
rescue LoadError => e
puts e
end
@test_parms_file = "#{@home}/scripts/subscripts/_current_test.rb"
# Find out what tests we have available
def build_test_list()
@test_names = []
Dir.foreach("/home/jeb228/LoadTesting/testinfo/tests") do |filename|
Dir.foreach(test_file('tests')) do |filename|
@test_names.push(filename) unless filename[0,1] == "."
end
@test_names.sort!