Home | Trees | Index | Help |
---|
|
object --+ | extension.Extension --+ | runnable.Runnable --+ | test.Test --+ | dejagnu_base.DejaGNUBase --+ | DejaGNUTest
A 'DejaGNUTest' emulates a DejaGNU test.
See 'framework.exp' in the DejaGNU distribution for more information.
|
|||
BuildExecutable | A 'BuildExecutable' runs on the build machine. | ||
Inherited from Inherited from Inherited from |
|
|||
_Error(self,
message)
Raise an exception indicating an error in the test. |
|||
_GetBuild(self,
context)
Return the GNU triplet corresponding to the build machine. |
|||
_GetSourcePath(self)
Return the path to the primary source file. |
|||
_GetTarget(self,
context)
Return the GNU triplet corresponding to the target machine. |
|||
_GetTargetEnvironment(self,
context)
Return additional environment variables to set on the target. |
|||
_IsNative(self,
context)
Returns true if the build and target machines are the same. |
|||
_ParseTclWords(self,
s,
variables={})
Separate 's' into words, in the same way that Tcl would. |
|||
_RecordDejaGNUOutcome(self,
result,
outcome,
message,
expectation=None)
Record a DejaGNU outcome. |
|||
_RunBuildExecutable(self,
context,
result,
file,
args=[],
dir=None)
Run 'file' on the target. |
|||
_RunTargetExecutable(self,
context,
result,
file)
Run 'file' on the target. |
|||
_SetUp(self,
context)
Prepare to run a test. |
|||
_Unresolved(self,
result,
message)
Record an 'unresolved' DejaGNU outcome. |
|||
Inherited from Inherited from Inherited from Inherited from Inherited from |
|
|||
ERROR | |||
FAIL | |||
KFAIL | |||
KPASS | |||
PASS | |||
RESULT_PREFIX | The prefix for DejaGNU result annotations. | ||
UNRESOLVED | |||
UNSUPPORTED | |||
UNTESTED | |||
WARNING | |||
XFAIL | |||
XPASS | |||
_argument_dictionary | |||
_argument_list | |||
arguments | |||
dejagnu_outcomes | The DejaGNU test outcomes. | ||
executable_timeout | The number of seconds a program is permitted to run on the target. | ||
outcome_map | A map from DejaGNU outcomes to QMTest outcomes. | ||
source_file | |||
Inherited from Inherited from Inherited from Inherited from |
|
Raise an exception indicating an error in the test. 'message' -- A description of the problem. This function is used when the original Tcl code in DejaGNU would have used the Tcl 'error' primitive. These situations indicate problems with the test itself, such as incorrect usage of special test commands. |
Return the GNU triplet corresponding to the build machine. 'context' -- The 'Context' in which the test is running. returns -- The GNU triplet corresponding to the target machine, i.e,. the machine on which the compiler will run. |
Return the path to the primary source file. returns -- A string giving the path to the primary source file. |
Return the GNU triplet corresponding to the target machine. 'context' -- The 'Context' in which the test is running. returns -- The GNU triplet corresponding to the target machine, i.e,. the machine on which the programs generated by the compiler will run. |
Return additional environment variables to set on the target. 'context' -- The 'Context' in which this test is running. returns -- A map from strings (environment variable names) to strings (values for those variables). These new variables are added to the environment when a program executes on the target. |
Returns true if the build and target machines are the same. 'context' -- The 'Context' in which this test is running. returns -- True if this test is runing "natively", i.e., if the build and target machines are the same. |
Separate 's' into words, in the same way that Tcl would. 's' -- A string. 'variables' -- A map from variable names to values. If Tcl variable substitutions are encountered in 's', the corresponding value from 'variables' will be used. returns -- A sequence of strings, each of which is a Tcl word. Command substitution is not supported and results in an exceptions. Invalid inputs (like the string consisting of a single quote) also result in exceptions. See 'Tcl and the Tk Toolkit', by John K. Ousterhout, copyright 1994 by Addison-Wesley Publishing Company, Inc. for details about the syntax of Tcl. |
Record a DejaGNU outcome. 'result' -- A 'Result' object. 'outcome' -- One of the 'dejagnu_outcomes'. 'message' -- A string, explaining the outcome. 'expectation' -- If not 'None, the DejaGNU outcome that was expected. |
Run 'file' on the target. 'context' -- The 'Context' in which this test is running. 'result' -- The 'Result' of this test. 'file' -- The path to the executable file. 'args' -- The arguments to the 'file'. 'dir' -- The directory in which the program should execute. returns -- A pair '(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. |
Run 'file' on the target. 'context' -- The 'Context' in which this test is running. 'result' -- The 'Result' of this test. 'file' -- The path to the executable file. returns -- One of the 'dejagnu_outcomes'. |
Prepare to run a test. 'context' -- The 'Context' in which this test will run. This method may be overridden by derived classes, but they must call this version.
|
Record an 'unresolved' DejaGNU outcome. This function is identical to 'RecordDejaGNUOutcome', except that the 'outcome' is always 'UNRESOLVED'. |
|
ERROR
|
FAIL
|
KFAIL
|
KPASS
|
PASS
|
RESULT_PREFIXThe prefix for DejaGNU result annotations. All results that would be generated by DejaGNU are inserted into the QMTest result as annotations beginning with this prefix. The prefix is followed by an 1-indexed integer; earlier results are inserted with lower numbers.
|
UNRESOLVED
|
UNSUPPORTED
|
UNTESTED
|
WARNING
|
XFAIL
|
XPASS
|
_argument_dictionary
|
_argument_list
|
arguments
|
dejagnu_outcomesThe DejaGNU test outcomes.
|
executable_timeoutThe number of seconds a program is permitted to run on the target.
|
outcome_mapA map from DejaGNU outcomes to QMTest outcomes.
|
source_file
|
Home | Trees | Index | Help |
---|
Generated by Epydoc 3.0alpha2 on Fri Sep 28 00:57:32 2007 | http://epydoc.sf.net |