TestCenter Reference
TestSupport.CodeTest.CodeTest Class Reference

Public Member Functions

 __init__ (self, cmakeFile=None, executable=None)
 getInfoDict (self)
 getTestFunctionGroups (self)
 getExecutable (self)
 existsExecutable (self)
 buildProject (self)
 loadTestFunctions (self)
 injectTestFunctions (self, context, allowedStdErrRegExp=None)

Public Attributes

 cmakeFile = cmakeFile
 executable = executable
 name = self._parseCMakeFile(cmakeFile)

Protected Member Functions

 _getUniqueTestCaseName (self, name)
 _getError (self, result)
 _parseCMakeFile (self, cmakeFile)
 _getBuildRoot (self)
 _findExecutable (self)
 _parseTestFunctionsFromOutput (self, output)
 _groupCode (self, group)
 _hasSanitizerSuppression (self, sanitizerPrefix, envVar, compilerVersion)
 _determineSanitizerSetUpCode (self)
 _functionCode (self, group, function, allowedStdErrRegExp=None)

Detailed Description

Definition at line 138 of file CodeTest.py.

Constructor & Destructor Documentation

◆ __init__()

TestSupport.CodeTest.CodeTest.__init__ ( self,
cmakeFile = None,
executable = None )

Definition at line 140 of file CodeTest.py.

References __infoDict, __testFunctionGroups, and __uniqueFunctionNames.

Member Function Documentation

◆ _determineSanitizerSetUpCode()

TestSupport.CodeTest.CodeTest._determineSanitizerSetUpCode ( self)
protected

Definition at line 381 of file CodeTest.py.

References _hasSanitizerSuppression().

Referenced by _functionCode().

◆ _findExecutable()

◆ _functionCode()

TestSupport.CodeTest.CodeTest._functionCode ( self,
group,
function,
allowedStdErrRegExp = None )
protected

Definition at line 418 of file CodeTest.py.

References _determineSanitizerSetUpCode(), and getExecutable().

Referenced by injectTestFunctions().

◆ _getBuildRoot()

TestSupport.CodeTest.CodeTest._getBuildRoot ( self)
protected

Definition at line 259 of file CodeTest.py.

Referenced by _findExecutable(), and buildProject().

◆ _getError()

TestSupport.CodeTest.CodeTest._getError ( self,
result )
protected

Definition at line 236 of file CodeTest.py.

Referenced by buildProject().

◆ _getUniqueTestCaseName()

TestSupport.CodeTest.CodeTest._getUniqueTestCaseName ( self,
name )
protected

Definition at line 153 of file CodeTest.py.

◆ _groupCode()

TestSupport.CodeTest.CodeTest._groupCode ( self,
group )
protected

Definition at line 357 of file CodeTest.py.

Referenced by injectTestFunctions().

◆ _hasSanitizerSuppression()

TestSupport.CodeTest.CodeTest._hasSanitizerSuppression ( self,
sanitizerPrefix,
envVar,
compilerVersion )
protected

Definition at line 368 of file CodeTest.py.

Referenced by _determineSanitizerSetUpCode().

◆ _parseCMakeFile()

TestSupport.CodeTest.CodeTest._parseCMakeFile ( self,
cmakeFile )
protected

Definition at line 248 of file CodeTest.py.

◆ _parseTestFunctionsFromOutput()

TestSupport.CodeTest.CodeTest._parseTestFunctionsFromOutput ( self,
output )
protected

Definition at line 307 of file CodeTest.py.

References __getUniqueFunctionName(), __testFunctionGroups, and __uniqueFunctionNames.

Referenced by loadTestFunctions().

◆ buildProject()

◆ existsExecutable()

TestSupport.CodeTest.CodeTest.existsExecutable ( self)

Definition at line 217 of file CodeTest.py.

References __executableExists(), and getExecutable().

Referenced by buildProject(), and loadTestFunctions().

◆ getExecutable()

TestSupport.CodeTest.CodeTest.getExecutable ( self)

◆ getInfoDict()

TestSupport.CodeTest.CodeTest.getInfoDict ( self)

Definition at line 166 of file CodeTest.py.

References __infoDict, and cmakeFile.

◆ getTestFunctionGroups()

TestSupport.CodeTest.CodeTest.getTestFunctionGroups ( self)

Definition at line 179 of file CodeTest.py.

References __testFunctionGroups.

Referenced by injectTestFunctions().

◆ injectTestFunctions()

TestSupport.CodeTest.CodeTest.injectTestFunctions ( self,
context,
allowedStdErrRegExp = None )

◆ loadTestFunctions()

TestSupport.CodeTest.CodeTest.loadTestFunctions ( self)

Member Data Documentation

◆ cmakeFile

TestSupport.CodeTest.CodeTest.cmakeFile = cmakeFile

Definition at line 144 of file CodeTest.py.

Referenced by _findExecutable(), getInfoDict(), and loadTestFunctions().

◆ executable

TestSupport.CodeTest.CodeTest.executable = executable

Definition at line 145 of file CodeTest.py.

Referenced by buildProject(), getExecutable(), and loadTestFunctions().

◆ name

TestSupport.CodeTest.CodeTest.name = self._parseCMakeFile(cmakeFile)

Definition at line 149 of file CodeTest.py.

Referenced by _findExecutable(), and buildProject().


The documentation for this class was generated from the following file:
  • MeVisLab/Standard/Modules/Scripts/python/TestSupport/CodeTest.py