miasm
Reverse engineering framework
utils.testset.TestSet Class Reference
Inheritance diagram for utils.testset.TestSet:
Collaboration diagram for utils.testset.TestSet:

Public Member Functions

def __init__ (self, base_dir)
 
def __add__ (self, test)
 
def add (self, test)
 
def set_cpu_numbers (self, cpu_c)
 
def set_callback (self, task_done=None, task_new=None)
 
def add_additional_args (self, args)
 
def run (self)
 
def end (self, clean=True)
 
def tests_passed (self)
 
def filter_tags (self, include_tags=None, exclude_tags=None)
 

Static Public Member Functions

def fast_unify (seq, idfun=None)
 

Public Attributes

 base_dir
 
 task_done_cb
 
 task_new_cb
 
 todo_queue
 
 message_queue
 
 tests
 
 tests_done
 
 cpu_c
 
 errorcode
 
 additional_args
 
 current_directory
 
 init_tests_number
 

Static Public Attributes

 worker = staticmethod(worker)
 

Constructor & Destructor Documentation

◆ __init__()

def utils.testset.TestSet.__init__ (   self,
  base_dir 
)
Initialise a test set
@base_dir: base directory for tests

Member Function Documentation

◆ __add__()

def utils.testset.TestSet.__add__ (   self,
  test 
)
Here is the call graph for this function:

◆ add()

def utils.testset.TestSet.add (   self,
  test 
)
Here is the caller graph for this function:

◆ add_additional_args()

def utils.testset.TestSet.add_additional_args (   self,
  args 
)
Add arguments to used on the test command line
@args: list of str

◆ end()

def utils.testset.TestSet.end (   self,
  clean = True 
)
End a testset run
@clean: (optional) if set, remove tests products
PRE: run()
Here is the call graph for this function:

◆ fast_unify()

def utils.testset.TestSet.fast_unify (   seq,
  idfun = None 
)
static
Order preserving unifying list function
@seq: list to unify
@idfun: marker function (default is identity)

◆ filter_tags()

def utils.testset.TestSet.filter_tags (   self,
  include_tags = None,
  exclude_tags = None 
)
Filter tests by tags
@include_tags: list of tags' name (whitelist)
@exclude_tags: list of tags' name (blacklist)
If @include_tags and @exclude_tags are used together, @exclude_tags will
act as a blacklist on @include_tags generated tests

◆ run()

def utils.testset.TestSet.run (   self)

◆ set_callback()

def utils.testset.TestSet.set_callback (   self,
  task_done = None,
  task_new = None 
)
Set callbacks for task information retrieval
@task_done: function(Test, Error message)
@task_new: function(Test)
Here is the call graph for this function:

◆ set_cpu_numbers()

def utils.testset.TestSet.set_cpu_numbers (   self,
  cpu_c 
)
Set the number of cpu to use
@cpu_c: Number of CPU to use (default is maximum)

◆ tests_passed()

def utils.testset.TestSet.tests_passed (   self)

Member Data Documentation

◆ additional_args

utils.testset.TestSet.additional_args

◆ base_dir

utils.testset.TestSet.base_dir

◆ cpu_c

utils.testset.TestSet.cpu_c

◆ current_directory

utils.testset.TestSet.current_directory

◆ errorcode

utils.testset.TestSet.errorcode

◆ init_tests_number

utils.testset.TestSet.init_tests_number

◆ message_queue

utils.testset.TestSet.message_queue

◆ task_done_cb

utils.testset.TestSet.task_done_cb

◆ task_new_cb

utils.testset.TestSet.task_new_cb

◆ tests

utils.testset.TestSet.tests

◆ tests_done

utils.testset.TestSet.tests_done

◆ todo_queue

utils.testset.TestSet.todo_queue

◆ worker

utils.testset.TestSet.worker = staticmethod(worker)
static

The documentation for this class was generated from the following file: