muteria.drivers package

Subpackages

Submodules

Module contents

class muteria.drivers.DriversUtils[source]

Bases: object

EXEC_SEGFAULT_OUT_RET_CODE = (-11,)
EXEC_TIMED_OUT_RET_CODE = (-9, -15)
classmethod check_tool(prog, args_list=[], expected_exit_codes=[0])[source]
classmethod execute_and_get_retcode_out_err(prog, args_list=[], env=None, stdin=None, timeout=None, timeout_grace_period=5, out_on=True, err_on=True, merge_err_to_out=True, cwd=None, shell=False)[source]
classmethod make_meta_element(element, toolalias)[source]
classmethod reverse_meta_element(meta_element)[source]
classmethod update_matrix_to_cover_when_difference(target_matrix_file, target_outdata_file, comparing_vector_file, comparing_outdata_file)[source]
class muteria.drivers.RepoFileToCustomMap[source]

Bases: dict

This class define a mapping between a repository file and its custom coresponding file. This is usefule to let the testcase tool know which file to replace during test execution. Just specify the files to change. If none is specified, the default files in the repository are used.

add_map(repo_val, custom_val)[source]
delete_map(repo_val)[source]
get_custom_value(repo_val)[source]
read_from_file(filepath)[source]
update_custom_value(repo_val, custom_val)[source]
write_to_file(filepath)[source]
class muteria.drivers.ToolsModulesLoader[source]

Bases: object

Load tools drivers :Example: >>> import muteria.drivers as md >>> md.ToolsModulesLoader.get_tools_modules( … md.ToolsModulesLoader.CRITERIA_TOOLS) >>> {}

COMMON_TOOLS_BY_LANGUAGE_DIR = 'tools_by_languages'
CRITERIA_TOOLS = 'CRITERIA'
TESTCASES_TOOLS = 'TESTCASES'
TOOL_CATEGORIES_DIRS = {'CRITERIA': 'criteria', 'TESTCASES': 'testgeneration'}
classmethod get_tools_modules(tool_category)[source]

Import all tools modules of the specified tool category into a Dict as following: {<language>: {<toolname>: <module>}}