Package qm :: Package test :: Package classes :: Module compilation_test_database :: Class CompilationTest
[hide private]
[frames] | no frames]

Class CompilationTest

source code

         object --+                    
                  |                    
extension.Extension --+                
                      |                
      runnable.Runnable --+            
                          |            
                  test.Test --+        
                              |        
 compiler_test.CompilerBase --+        
                              |        
     compiler_test.CompilerTest --+    
                                  |    
   compilation_test.CompilationTest --+
                                      |
                                     CompilationTest

A CompilationTest fetches compilation parameters from environment variables CPPFLAGS, <lang>_options, and <lang>_ldflags in addition to the CompilerTable-related parameters.

Nested Classes [hide private]

Inherited from test.Test: OutcomeField, TestField

Inherited from runnable.Runnable: ResourceField

Inherited from extension.Extension: Type, __metaclass__

Instance Methods [hide private]
 
_GetCompilationSteps(self, c)
Return the compilation steps for this test.
source code

Inherited from compilation_test.CompilationTest: Run

Inherited from compilation_test.CompilationTest (private): _CheckOutput, _GetCompiler, _GetTarget, _IsExecutionRequired

Inherited from compiler_test.CompilerTest (private): _CheckExecutableOutput, _DiagnosticsToString, _GetAnnotationPrefix, _GetEnvironment, _GetExecutableArguments, _GetLibraryDirectories, _IsDiagnosticExpected, _MustExecutableExitSuccessfully, _RunExecutable

Inherited from test.Test: GetTargetGroup

Inherited from runnable.Runnable: GetAttachments, GetDatabase, GetId, __init__

Inherited from extension.Extension: GetClassName, GetExplicitArguments, MakeDomDocument, MakeDomElement, Write, __getattr__

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Inherited from compiler_test.CompilerBase (private): _GetDirectory, _GetObjectFileName, _MakeDirectory, _RemoveDirectory

Class Variables [hide private]
  options = SetField(TextField(), computed= "true")
  ldflags = SetField(TextField(), computed= "true")
  source_files = SetField(TextField(), computed= "true")
  executable = TextField(computed= "true")
  language = TextField()

Inherited from compilation_test.CompilationTest: execute

Inherited from compiler_test.CompilerTest (private): _ignored_diagnostic_regexps

Inherited from test.Test: PREREQUISITES_FIELD_ID, arguments, kind

Inherited from runnable.Runnable: EXTRA_DATABASE, EXTRA_ID, RESOURCE_FIELD_ID, resources

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

_GetCompilationSteps(self, c)

source code 

Return the compilation steps for this test.

'context' -- The 'Context' in which this test is being executed.

returns -- A sequence of 'CompilationStep' objects.

Overrides: compiler_test.CompilerTest._GetCompilationSteps
(inherited documentation)