Home | Trees | Indices | 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 |
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from Inherited from Inherited from Inherited from Inherited from |
|
|||
arguments = [qm.fields.AttachmentField(name= "source_file", ti A list of the arguments to the extension class. |
|||
PASS = "PASS"
|
|||
FAIL = "FAIL"
|
|||
KFAIL = "KFAIL"
|
|||
KPASS = "KPASS"
|
|||
XPASS = "XPASS"
|
|||
XFAIL = "XFAIL"
|
|||
WARNING = "WARNING"
|
|||
ERROR = "ERROR"
|
|||
UNTESTED = "UNTESTED"
|
|||
UNRESOLVED = "UNRESOLVED"
|
|||
UNSUPPORTED = "UNSUPPORTED"
|
|||
dejagnu_outcomes = PASS, FAIL, XPASS, XFAIL, WARNING, ERROR, U The DejaGNU test outcomes. |
|||
outcome_map = {PASS: Result.PASS, FAIL: Result.FAIL, KFAIL: Re A map from DejaGNU outcomes to QMTest outcomes. |
|||
executable_timeout = 300 The number of seconds a program is permitted to run on the target. |
|||
RESULT_PREFIX = "DejaGNUTest.result_" The prefix for DejaGNU result annotations. |
|||
Inherited from Inherited from Inherited from Inherited from |
|
|||
Inherited from |
|
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. |
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'. |
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. |
Record an 'unresolved' DejaGNU outcome. This function is identical to 'RecordDejaGNUOutcome', except that the 'outcome' is always 'UNRESOLVED'. |
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 path to the primary source file. returns -- A string giving the path to the primary source file. |
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 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. |
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. |
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.
|
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. |
|
argumentsA list of the arguments to the extension class. Each element of this list should be an instance of 'Field'. The 'Field' instance describes the argument. Derived classes may redefine this class variable. However, derived classes should not explicitly include the arguments from base classes; QMTest will automatically combine all the arguments found throughout the class hierarchy.
|
dejagnu_outcomesThe DejaGNU test outcomes.
|
outcome_mapA map from DejaGNU outcomes to QMTest outcomes.
|
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.
|
Home | Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Fri Dec 23 12:30:41 2011 | http://epydoc.sourceforge.net |