Class: DejaGNUTest | qm/test/classes/dejagnu_test.py | |||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
A
|
Base Classes | |
---|---|
Test DejaGNUBase |
Methods | |||
---|---|---|---|
| |||
_Error | |||
_Error ( self, message ) Raise an exception indicating an error in the test.
This function is used when the original Tcl code in DejaGNU
would have used the Tcl
| |||
_GetBuild | |||
_GetBuild ( self, context ) Return the GNU triplet corresponding to the build machine.
| |||
_GetSourcePath | |||
_GetSourcePath ( self ) Return the patch to the primary source file.
| |||
_GetTarget | |||
_GetTarget ( self, context ) Return the GNU triplet corresponding to the target machine.
| |||
_GetTargetEnvironment | |||
_GetTargetEnvironment ( self, context ) Return additional environment variables to set on the target.
| |||
_IsNative | |||
_IsNative ( self, context ) Returns true if the build and target machines are the same.
| |||
_ParseTclWords | |||
_ParseTclWords ( self, s, variables={}, ) Separate
|
Exceptions | |
---|---|
QMException, "Invalid Tcl string." QMException, "Tcl command substitution is unsupported." QMException, "Unsupported Tcl escape." |
_RecordDejaGNUOutcome ( self, result, outcome, message, expectation=None, )
result
Result
object.outcome
dejagnu_outcomes
.message
expectation
_RunBuildExecutable ( self, context, result, file, args=[], dir=None, )
file
on the target.context
Context
in which this test is running.result
Result
of this test.file
args
file
.dir
(status, output)
. The status
is the
exit status from the command; the output
is the combined
results of the standard output and standard error streams._RunTargetExecutable ( self, context, result, file, dir=None, )
file
on the target.context
Context
in which this test is running.result
Result
of this test.file
dir
dejagnu_outcomes
._SetUp ( self, context )
context
Context
in which this test will run.This method may be overridden by derived classes, but they must call this version.
_Unresolved ( self, result, message, )
unresolved
DejaGNU outcome. This function is identical to RecordDejaGNUOutcome
, except
that the outcome
is always UNRESOLVED
.