Back to index

enigmail  1.4.3
Classes | Functions | Variables
unit-expandlibs Namespace Reference

Classes

class  TestRelativize
class  TestLibDescriptor
class  ReplicateTests
class  TestCaseWithTmpDir
class  TestExpandLibsGen
class  TestExpandInit
class  TestExpandArgs
class  TestExpandArgsMore
class  FakeProcess
class  SubprocessPopen
class  TestSectionFinder
class  TestSymbolOrder

Functions

def Lib
def Obj
def Dll
def ImportLib
def wrap_method

Variables

dictionary config_win
dictionary config_unix
list config = sys.modules['expandlibs_config']
dictionary OBJDUMPS
string PRINT_ICF

Function Documentation

def unit-expandlibs.Dll (   name)

Definition at line 49 of file unit-expandlibs.py.

00049 
00050 def Dll(name):
00051     return config.DLL_PREFIX + name + config.DLL_SUFFIX

Here is the caller graph for this function:

def unit-expandlibs.ImportLib (   name)

Definition at line 52 of file unit-expandlibs.py.

00052 
00053 def ImportLib(name):
00054     if not len(config.IMPORT_LIB_SUFFIX): return Dll(name)
00055     return config.LIB_PREFIX + name + config.IMPORT_LIB_SUFFIX

Here is the call graph for this function:

def unit-expandlibs.Lib (   name)

Definition at line 43 of file unit-expandlibs.py.

00043 
00044 def Lib(name):
00045     return config.LIB_PREFIX + name + config.LIB_SUFFIX

Here is the caller graph for this function:

def unit-expandlibs.Obj (   name)

Definition at line 46 of file unit-expandlibs.py.

00046 
00047 def Obj(name):
00048     return name + config.OBJ_SUFFIX

Here is the caller graph for this function:

def unit-expandlibs.wrap_method (   conf,
  wrapped_method 
)
Wrapper used to call a test with a specific configuration

Definition at line 96 of file unit-expandlibs.py.

00096 
00097 def wrap_method(conf, wrapped_method):
00098     '''Wrapper used to call a test with a specific configuration'''
00099     def _method(self):
00100         for key in conf:
00101             setattr(config, key, conf[key])
00102         self.init()
00103         try:
00104             wrapped_method(self)
00105         except:
00106             raise
00107         finally:
00108             self.cleanup()
00109     return _method

Here is the caller graph for this function:


Variable Documentation

list unit-expandlibs.config = sys.modules['expandlibs_config']

Definition at line 37 of file unit-expandlibs.py.

dictionary unit-expandlibs.config_unix
Initial value:
00001 {
00002     'AR_EXTRACT': 'ar -x',
00003     'DLL_PREFIX': 'lib',
00004     'LIB_PREFIX': 'lib',
00005     'OBJ_SUFFIX': '.o',
00006     'LIB_SUFFIX': '.a',
00007     'DLL_SUFFIX': '.so',
00008     'IMPORT_LIB_SUFFIX': '',
00009     'LIBS_DESC_SUFFIX': '.desc',
00010     'EXPAND_LIBS_LIST_STYLE': 'linkerscript',
00011 }

Definition at line 25 of file unit-expandlibs.py.

dictionary unit-expandlibs.config_win
Initial value:
00001 {
00002     'AR_EXTRACT': '',
00003     'DLL_PREFIX': '',
00004     'LIB_PREFIX': '',
00005     'OBJ_SUFFIX': '.obj',
00006     'LIB_SUFFIX': '.lib',
00007     'DLL_SUFFIX': '.dll',
00008     'IMPORT_LIB_SUFFIX': '.lib',
00009     'LIBS_DESC_SUFFIX': '.desc',
00010     'EXPAND_LIBS_LIST_STYLE': 'list',
00011 }

Definition at line 14 of file unit-expandlibs.py.

dictionary unit-expandlibs.OBJDUMPS
Initial value:
00001 {
00002 'foo.o': '''
00003 00000000 g     F .text\t00000001 foo
00004 00000000 g     F .text._Z6foobarv\t00000001 _Z6foobarv
00005 00000000 g     F .text.hello\t00000001 hello
00006 00000000 g     F .text._ZThn4_6foobarv\t00000001 _ZThn4_6foobarv
00007 ''',
00008 'bar.o': '''
00009 00000000 g     F .text.hi\t00000001 hi
00010 00000000 g     F .text.hot._Z6barbazv\t00000001 .hidden _Z6barbazv
00011 ''',
00012 }

Definition at line 278 of file unit-expandlibs.py.

string unit-expandlibs.PRINT_ICF
Initial value:
00001 '''
00002 ld: ICF folding section '.text.hello' in file 'foo.o'into '.text.hi' in file 'bar.o'
00003 ld: ICF folding section '.foo' in file 'foo.o'into '.foo' in file 'bar.o'
00004 '''

Definition at line 291 of file unit-expandlibs.py.