Package qm :: Package test :: Package classes :: Module compiler_test :: Class CompilerBase
[hide private]
[frames] | no frames]

Class CompilerBase
source code

Known Subclasses:
CompilerTest

A 'CompilerBase' is used by compilation test and resource clases.

Instance Methods [hide private]
  _GetDirectory(self, context)
Get the name of the directory in which to run.
  _MakeDirectory(self, context)
Create a directory in which to place generated files.
  _RemoveDirectory(self, context, result)
Remove the directory in which generated files are placed.
  _GetObjectFileName(self, source_file_name, object_extension)
Return the default object file name for 'source_file_name'.

Method Details [hide private]

_GetDirectory(self, context)

source code 

Get the name of the directory in which to run.

'context' -- A 'Context' giving run-time parameters to the test.

'returns' -- The name of the directory in which this test or resource will execute.

_MakeDirectory(self, context)

source code 

Create a directory in which to place generated files.

'context' -- A 'Context' giving run-time parameters to the test.

returns -- The name of the directory.

_RemoveDirectory(self, context, result)

source code 

Remove the directory in which generated files are placed.

'result' -- The 'Result' of the test or resource. If the 'result' indicates success, the directory is removed. Otherwise, the directory is left behind to allow investigation of the reasons behind the test failure.

_GetObjectFileName(self, source_file_name, object_extension)

source code 

Return the default object file name for 'source_file_name'.

'source_file_name' -- A string giving the name of a source file.

'object_extension' -- The extension used for object files.

returns -- The name of the object file that will be created by compiling 'source_file_name'.