Parolin 0.7.9 6796
Console (soon DLLs) to do a tar like job
Loading...
Searching...
No Matches
DEPRECATED-test-zstd-speed Namespace Reference

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.1.2 (2017-03-26)'
 
str default_repo_url = 'https://github.com/facebook/zstd.git'
 
str working_dir_name = 'speedTest'
 
str working_path = os.getcwd() + '/' + working_dir_name
 
str clone_path = working_path + '/' + 'zstd'
 
str email_header = 'ZSTD_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)
 
 dictionary
 
 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)
 

Function Documentation

◆ benchmark_and_compare()

benchmark_and_compare ( branch,
commit,
last_commit,
args,
executableName,
md5sum,
compilerVersion,
resultsFileName,
testFilePath,
fileName,
last_csize,
last_cspeed,
last_dspeed )

◆ does_command_exist()

does_command_exist ( command)

◆ double_check()

double_check ( branch,
commit,
args,
executableName,
md5sum,
compilerVersion,
resultsFileName,
filePath,
fileName )

◆ execute()

execute ( command,
print_command = True,
print_output = False,
print_error = True,
param_shell = True )

◆ get_last_results()

get_last_results ( resultsFileName)

◆ git_get_branches()

git_get_branches ( )

◆ git_get_changes()

git_get_changes ( branch,
commit,
last_commit )

◆ hashfile()

hashfile ( hasher,
fname,
blocksize = 65536 )

◆ log()

log ( text)

◆ send_email()

send_email ( emails,
topic,
text,
have_mutt,
have_mail )

◆ send_email_with_attachments()

send_email_with_attachments ( branch,
commit,
last_commit,
args,
text,
results_files,
logFileName,
have_mutt,
have_mail )

◆ test_commit()

test_commit ( branch,
commit,
last_commit,
args,
testFilePaths,
have_mutt,
have_mail )

◆ update_config_file()

update_config_file ( branch,
commit )

Variable Documentation

◆ action

action

◆ args

args = None

◆ branch

str branch = ""

◆ branches

branches = git_get_branches()

◆ clang_version

str clang_version = "unknown"

◆ clone_path

str clone_path = working_path + '/' + 'zstd'

◆ commit

str commit = ""

◆ cwd

cwd

◆ default

default

◆ default_repo_url

str default_repo_url = 'https://github.com/facebook/zstd.git'

◆ dest

dest

◆ dictionary

◆ email_header

str email_header = 'ZSTD_speedTest'

◆ email_topic

str email_topic = '[%s:%s] ERROR in %s:%s' % (email_header, pid, branch, commit)

◆ fileName

fileName = os.path.expanduser(fileName)

◆ first_time

bool first_time = True

◆ float

float

◆ gcc_version

str gcc_version = "unknown"

◆ have_mail

have_mail = does_command_exist("mail -V")

◆ have_mutt

have_mutt = does_command_exist("mutt -h")

◆ help

help ( void )

◆ int

int

◆ last_commit

last_commit = update_config_file(branch, commit)

◆ loadavg

loadavg = os.getloadavg()[0]

◆ parser

parser = argparse.ArgumentParser()

◆ pid

pid = str(os.getpid())

◆ pidfile

str pidfile = "./speedTest.pid"

◆ script_version

str script_version = 'v1.1.2 (2017-03-26)'

◆ stack

stack = traceback.format_exc()

◆ testFileNames

testFileNames = args.testFileNames.split()

◆ testFilePaths

list testFilePaths = []

◆ type

type

◆ verbose

bool verbose = False

◆ working_dir_name

str working_dir_name = 'speedTest'

◆ working_path

str working_path = os.getcwd() + '/' + working_dir_name