Home | Trees | Indices | Help |
---|
|
object --+ | extension.Extension --+ | runnable.Runnable --+ | test.Test --+ | CompilerBase --+ | CompilerTest
A 'CompilerTest' tests a compiler.
|
|||
Inherited from Inherited from Inherited from |
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from Inherited from Inherited from Inherited from Inherited from |
|
|||
_ignored_diagnostic_regexps = () A sequence of regular expressions matching diagnostics to ignore. |
|||
Inherited from Inherited from Inherited from Inherited from |
|
|||
Inherited from |
|
Run the test. 'context' -- A 'Context' giving run-time parameters to the test. 'result' -- A 'Result' object. The outcome will be 'Result.PASS' when this method is called. The 'result' may be modified by this method to indicate outcomes other than 'Result.PASS' or to add annotations.
|
Return the 'Compiler' to use. 'context' -- The 'Context' in which this test is being executed. |
Return the compilation steps for this test. 'context' -- The 'Context' in which this test is being executed. returns -- A sequence of 'CompilationStep' objects. |
Returns a target for the executable to be run on. 'context' -- The Context in which this test is being executed. returns -- A Host to run the executable on. |
Returns true if the generated executable should be run. returns -- True if the generated executable should be run. |
Returns the arguments to the generated executable. returns -- A list of strings, to be passed as argumensts to the generated executable. |
Returns true if the executable must exit with code zero. returns -- True if the generated executable (if any) must exit with code zero. Note that the executable will not be run at all (and so the return value of this function will be ignored) if '_IsExecutionRequired' does not return true. |
Return the prefix to use for result annotations. returns -- The prefix to use for result annotations. |
Return the environment to use for test execution. returns -- The environment dictionary to use for test execution. |
Returns the directories to search for libraries. 'context' -- A 'Context' giving run-time parameters to the test. returns -- A sequence of strings giving the paths to the directories to search for libraries. |
Run an executable generated by the compiler. 'path' -- The path to the generated executable. 'context' -- A 'Context' giving run-time parameters to the test. 'result' -- A 'Result' object. The outcome will be 'Result.PASS' when this method is called. The 'result' may be modified by this method to indicate outcomes other than 'Result.PASS' or to add annotations. |
Check that the 'output' contains appropriate diagnostics. 'context' -- The 'Context' for the test that is being executed. 'result' -- The 'Result' of the test. 'prefix' -- A string giving the prefix for any annotations to be added to the 'result'. 'output' -- A string giving the output of the compiler. 'diagnostics' -- The diagnostics that are expected for the compilation. returns -- True if there were no errors so severe as to prevent execution of the test. |
Checks the output from the generated executable. 'result' -- The 'Result' object for this test. 'output' -- The output generated by the executable. If the output is unsatisfactory, 'result' is modified appropriately. |
Returns true if 'emitted' matches 'expected'. 'emitted' -- A 'Diagnostic emitted by the compiler. 'expected' -- A 'Diagnostic' indicating an expectation about a diagnostic to be emitted by the compiler. returns -- True if the 'emitted' was expected by the 'expected'. |
Return a string representing the 'diagnostics'. 'diagnostics' -- A sequence of 'Diagnostic' instances. returns -- A string representing the 'Diagnostic's, with one diagnostic message per line. |
Home | Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Fri Dec 23 12:30:41 2011 | http://epydoc.sourceforge.net |