This class runs a solver on a test case, examines the results and
fails if they don't live up the expectations
|
|
a new object with type S, a subtype of T
|
|
|
__recursiveInit(self,
theClass,
called)
Automatically call the 'init'-method of the whole tree |
source code
|
|
|
|
|
setParameters(self,
**kwargs)
Update the parameters with a set of keyword-arguments |
source code
|
|
|
|
|
|
|
|
|
|
|
testName(self)
Return the full test name with which this test is identified |
source code
|
|
|
|
|
|
|
__doInit(self,
solver,
originalCase,
minimumRunTime=None,
referenceData=None,
tailLength=50,
headLength=50,
**kwargs)
Initialzation method to be called before running the actual test
(purpose of this method is to avoid cascaded of constructor-calls |
source code
|
|
|
readRunInfo(self)
read the runInfo from a file |
source code
|
|
|
writeRunInfo(self)
read the runInfo from a file |
source code
|
|
|
wrapACallback(self,
name)
Has to be a separate method because the loop in wrapCallbacks didn't
work |
source code
|
|
|
|
|
processOptions(self)
Select which phase of the test should be run |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
runCommand(self,
*args)
Run a command and let it directly write to the output |
source code
|
|
|
shell(self,
*args)
Run a command in the case directory and let it directly write to the
output |
source code
|
|
|
execute(self,
*args,
**kwargs)
Execute the passed arguments on the case and check if everything went
alright |
source code
|
|
|
|
|
solution(self)
Access to a SolutionDirectory-object that represents the current
solution |
source code
|
|
|
controlDict(self)
Access a representation of the controlDict of the case |
source code
|
|
|
|
|
status(self,
*args)
print a status message about the test |
source code
|
|
|
|
|
|
|
|
|
fail(self,
*args)
To be called if the test failed but other tests should be tried |
source code
|
|
|
|
|
|
|
which(self,
command)
Like the regular which command - return the full path to an
executable |
source code
|
|
|
|
|
runTests(self,
namePrefix,
warnSerial=False)
Run all methods that fit a certain name prefix |
source code
|
|
|
generalTest(self,
testFunction,
args,
*message) |
source code
|
|
|
compareSamples(self,
data,
reference,
fields,
time=None,
line=None,
scaleData=1,
offsetData=0,
scaleX=1,
offsetX=0)
Compare sample data and return the statistics |
source code
|
|
|
|
|
isNotEqual(self,
value,
target=0,
tolerance=1e-10,
message="") |
source code
|
|
|
isEqual(self,
value,
target=0,
tolerance=1e-10,
message="") |
source code
|
|
|
isBigger(self,
value,
threshold=0,
message="") |
source code
|
|
|
isSmaller(self,
value,
threshold=0,
message="") |
source code
|
|
|
|
|
autoDecompose(self)
Decomposition used if no callback is specified |
source code
|
|
|
autoReconstruct(self)
Reconstruction used if no callback is specified |
source code
|
|
|
|
|
|
|
|
|
|
|
|
Inherited from object :
__delattr__ ,
__format__ ,
__getattribute__ ,
__hash__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__sizeof__ ,
__str__ ,
__subclasshook__
|