Home | Trees | Indices | Help |
---|
|
object --+ | extension.Extension --+ | runnable.Runnable --+ | test.Test --+ | compiler_test.CompilerBase --+ | compiler_test.CompilerTest --+ | CompilationTest
A CompilationTest compiles and optionally runs an executable. CompilationTest allows simple cross-testing. To run the executable on anything other than localhost, specify a Host descriptor by means of the context variable 'CompilationTest.target'.
|
|||
Inherited from Inherited from Inherited from |
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from |
|
|||
options = SetField(TextField(description= """Test-specific opt
|
|||
ldflags = SetField(TextField(description= """Test-specific lin
|
|||
source_files = SetField(TextField(description= "Source files t
|
|||
executable = TextField(description= "The name of the executabl
|
|||
execute = BooleanField(default_value= True, description= "Whet
|
|||
Inherited from 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.
|
The name of the compiler executable is taken from the context variable 'CompilationTest.compiler_path'.
|
Return the compilation steps for this test. 'context' -- The 'Context' in which this test is being executed. returns -- A sequence of 'CompilationStep' objects.
|
Returns true if the generated executable should be run. returns -- True if the generated executable should be run.
|
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.
|
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.
|
|
options
|
ldflags
|
source_files
|
executable
|
execute
|
Home | Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Fri Dec 23 12:30:40 2011 | http://epydoc.sourceforge.net |