This is the Python testdriver for the Test suite. More...
Classes | |
class | CompileTarget |
This test tries to compile a CMake target. More... | |
class | Continuer |
GenericContinuer version of Runner. More... | |
class | FunctionComparer |
Compares several trajectories to a reference function by using function interpolation. More... | |
class | GenericContinuer |
This class hosts continued_run(), which will run and then continue a script. More... | |
class | OptionsManager |
Stores command line options and configuration file keys. More... | |
class | OutputManager |
Manages output files for different run modes. More... | |
class | Plotter |
This is a helper class which helps with plotting functions to a pdf file. More... | |
class | PythonContinuer |
GenericContinuer version of PythonRunner. More... | |
class | PythonRunner |
Runs a cpypyqed script repeatedly for all declared runmodes and succeeds if the scripts do. More... | |
class | Runner |
Runs a script repeatedly for all declared runmodes and succeeds if the scripts do. More... | |
class | StateComparer |
Tests final states of several trajectories by applying a given function. More... | |
class | TrajectoryComparer |
Compares several trajectories to a reference trajectory by using function interpolation. More... | |
class | VerifiedRunner |
Combines the functionality of Runner and Verifier to a single test. More... | |
class | Verifier |
Verifies the output of a script 'this' to an expected output or the output of some other test run 'other'. More... | |
Functions | |
def | main |
Main function of the Python test driver. More... | |
Helper functions | |
def | mkdir_p |
Create a directory with parent directories. More... | |
def | rm_f |
Remove a file without error if it doesn't exist. More... | |
def | load_sv |
Loads a trajectory file. More... | |
This is the Python testdriver for the Test suite.
It is intended to be used with the CMake CTest utility. When called with the parameter --testclass=<TESTCLASS>
, it calls the run
method of the specified runner class. Success of a test is indicated by the return value 0.
def testdriver.load_sv | ( | fname, | |
format = None |
|||
) |
Loads a trajectory file.
fname | File name to load from. |
Definition at line 67 of file testdriver.py.
def testdriver.main | ( | ) |
Main function of the Python test driver.
Command line options are defined here. It is responsible of loading the right cpypyqed
module (release or debug) as well as instantiating and running the test class.
Definition at line 802 of file testdriver.py.
def testdriver.mkdir_p | ( | path | ) |
Create a directory with parent directories.
path | The path to create. |
From this stackoverflow question
Definition at line 45 of file testdriver.py.
def testdriver.rm_f | ( | filename | ) |
Remove a file without error if it doesn't exist.
filename | The file to delete. |
From this stackoverflow question
Definition at line 57 of file testdriver.py.