| 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,
)
resultResult object.outcomedejagnu_outcomes.messageexpectation
_RunBuildExecutable (
self,
context,
result,
file,
args=[],
dir=None,
)
file on the target.contextContext in which this test is running.resultResult of this test.fileargsfile.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.contextContext in which this test is running.resultResult of this test.filedirdejagnu_outcomes._SetUp ( self, context )
contextContext 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.