TestBaseClass class. More...
Public Member Functions | |
| __init__ (self, argv, desc, mode) | |
| Provide input argument list, description and mode of the suite being executed.   | |
| override_cmds (self) | |
| Can be used by importing suite to handle custom commands.   | |
| parseargs (self, argv, desc) | |
| Parses the commandline arguments.   | |
| runtests (self, cmds) | |
| Execute the tests.   | |
Public Attributes | |
| mode = mode | |
| mode   | |
| my_env = os.environ | |
| os environment   | |
| options = self.parseargs(argv, desc) | |
| options   | |
| str | outfile = "test-port-" + self.mode + ".out" | 
| output file   | |
TestBaseClass class.
Generic class for testing tools based on provided commands and test cases.
Definition at line 50 of file TestBase.py.
| TestBase.TestBaseClass.__init__ | ( | self, | |
| argv, | |||
| desc, | |||
| mode ) | 
Provide input argument list, description and mode of the suite being executed.
| self | this object | 
| argv | argument list | 
| desc | description | 
| mode | test mode | 
Definition at line 64 of file TestBase.py.
| TestBase.TestBaseClass.override_cmds | ( | self | ) | 
Can be used by importing suite to handle custom commands.
| self | this object | 
Definition at line 123 of file TestBase.py.
References options.
| TestBase.TestBaseClass.parseargs | ( | self, | |
| argv, | |||
| desc ) | 
Parses the commandline arguments.
| self | this object | 
| argv | argument list | 
| desc | description | 
Definition at line 79 of file TestBase.py.
References outfile.
| TestBase.TestBaseClass.runtests | ( | self, | |
| cmds ) | 
Execute the tests.
| self | this object | 
| cmds | test commands | 
Definition at line 131 of file TestBase.py.
References my_env, options, TestBase.print_case_in_file(), TestBase.print_cmds(), and TestBase.print_failed_cases().
| TestBase.TestBaseClass.mode = mode | 
mode
Definition at line 75 of file TestBase.py.
| TestBase.TestBaseClass.my_env = os.environ | 
| TestBase.TestBaseClass.options = self.parseargs(argv, desc) | 
| str TestBase.TestBaseClass.outfile = "test-port-" + self.mode + ".out" |