Parolin 0.7.9 6796
Console (soon DLLs) to do a tar like job
Loading...
Searching...
No Matches
test-lz4-speed.py File Reference

Namespaces

namespace  test-lz4-speed
 

Functions

 hashfile (hasher, fname, blocksize=65536)
 
 log (text)
 
 execute (command, print_command=True, print_output=False, print_error=True, param_shell=True)
 
 does_command_exist (command)
 
 send_email (emails, topic, text, have_mutt, have_mail)
 
 send_email_with_attachments (branch, commit, last_commit, args, text, results_files, logFileName, have_mutt, have_mail)
 
 git_get_branches ()
 
 git_get_changes (branch, commit, last_commit)
 
 get_last_results (resultsFileName)
 
 benchmark_and_compare (branch, commit, last_commit, args, executableName, md5sum, compilerVersion, resultsFileName, testFilePath, fileName, last_csize, last_cspeed, last_dspeed)
 
 update_config_file (branch, commit)
 
 double_check (branch, commit, args, executableName, md5sum, compilerVersion, resultsFileName, filePath, fileName)
 
 test_commit (branch, commit, last_commit, args, testFilePaths, have_mutt, have_mail)
 

Variables

str script_version = 'v1.7.2 (2016-11-08)'
 
str default_repo_url = 'https://github.com/lz4/lz4.git'
 
str working_dir_name = 'speedTest'
 
str working_path = os.getcwd() + '/' + working_dir_name
 
str clone_path = working_path + '/' + 'lz4'
 
str email_header = 'lz4_speedTest'
 
 pid = str(os.getpid())
 
bool verbose = False
 
str clang_version = "unknown"
 
str gcc_version = "unknown"
 
 args = None
 
 cwd
 
 parser = argparse.ArgumentParser()
 
 help
 
 default
 
 type
 
 float
 
 int
 
 dest
 
 action
 
 testFileNames = args.testFileNames.split()
 
list testFilePaths = []
 
 fileName = os.path.expanduser(fileName)
 
 have_mutt = does_command_exist("mutt -h")
 
 have_mail = does_command_exist("mail -V")
 
str pidfile = "./speedTest.pid"
 
str branch = ""
 
str commit = ""
 
bool first_time = True
 
 loadavg = os.getloadavg()[0]
 
 branches = git_get_branches()
 
 last_commit = update_config_file(branch, commit)
 
 stack = traceback.format_exc()
 
str email_topic = '[%s:%s] ERROR in %s:%s' % (email_header, pid, branch, commit)