A re-worked version of the performance testing framework.
This commit is contained in:
parent
031dc3e004
commit
a009f582f3
52 changed files with 7017 additions and 0 deletions
35
utilities/LoadTesting/scripts/_captureTomcatLogs
Executable file
35
utilities/LoadTesting/scripts/_captureTomcatLogs
Executable file
|
@ -0,0 +1,35 @@
|
|||
#! /usr/bin/ruby
|
||||
|
||||
=begin
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
Copy the Tomcat logs into a time-stamped directory in the current "version"
|
||||
directory, for possible inspection later.
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
--------------------------------------------------------------------------------
|
||||
=end
|
||||
|
||||
require 'date'
|
||||
require "#{File.dirname(__FILE__)}/subscripts/loadParms"
|
||||
|
||||
def figure_time_stamp()
|
||||
return DateTime.now.strftime("%Y-%m-%d_%H-%M-%S")
|
||||
end
|
||||
|
||||
Dir.chdir("/home/jeb228/LoadTesting/versions/#{@version_name}") do |path|
|
||||
@tomcat_logs_dir = "#{path}/tomcatLogs"
|
||||
if (! File.directory?(@tomcat_logs_dir))
|
||||
Dir.mkdir(@tomcat_logs_dir)
|
||||
end
|
||||
end
|
||||
|
||||
Dir.chdir(@tomcat_logs_dir) do |path|
|
||||
@this_logs_dir = "#{path}/#{figure_time_stamp()}"
|
||||
Dir.mkdir(@this_logs_dir)
|
||||
end
|
||||
|
||||
Dir.chdir(@this_logs_dir) do |path|
|
||||
system('cp ~/LoadTesting/tomcat/logs/* .')
|
||||
end
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue