ipv6suite_test::IPv6SuiteInit Class Reference

List of all members.

Detailed Description

A particular build config that tests can depend on and use. 


Public Member Functions

def SetUp

Public Attributes

 wipe_build_dir

Static Public Attributes

list arguments


Member Function Documentation

def ipv6suite_test::IPv6SuiteInit::SetUp (   self,
  context,
  result 
)

00128                                     :
00129 #        if not context.has_key("IPv6Suite.srcDir"):
00130             # By default we assume there is a compiler.
00131         srcDir = context["IPv6Suite.srcDir"]
00132         srcDir = os.path.expanduser(srcDir)
00133         context["IPv6Suite.srcDir"] = srcDir
00134         if not os.path.exists(srcDir):
00135             result.SetOutcome(result.ERROR,
00136                               "srcDir does not exist. Where will we get source"
00137                               "files from?")
00138             return
00139         
00140         
00141         buildDir = context["IPv6Suite.buildDir"]
00142         buildDir = os.path.abspath(buildDir)
00143         context["IPv6Suite.buildDir"] = buildDir
00144             
00145         buildDir = os.path.join(buildDir, IdToDir(self))
00146         
00147         self.wipe_build_dir = qm.parse_boolean(context["IPv6Suite.wipe_build_dir"])
00148         #Can't use bool since the boolean_value is a string of 'true|false' and since bool
00149         # thinks of any string as true except empty or none.
00150         #self.wipe_build_dir = bool(self.wipe_build_dir)
00151         
00152         #We want clean builds especially when previously failed ones may have broken generated code        
00153         if self.wipe_build_dir and os.path.exists(buildDir):
00154             shutil.rmtree(buildDir)
00155 
00156         mkdirs(buildDir)
00157 
00158         if self.wipe_build_dir:
00159             print "Wiping all files"
00160             
00161         context["IPv6Suite.myBuildDir"] = buildDir
00162         self.myBuildDir = buildDir
00163         #srcdir/test is where we store the related input files like ini/xml etc.
00164         #Well database of qmtest would be where we store these input files but what structure underneath?
00165         
00166         make_executable = RedirectedExecutable()
00167         #We actually want a gui to relace this value if possible?
00168         cmake_defines = string.split(self.ipv6suite_build_options)
        cmake_options = "-DOPP_USE_TK:BOOL=OFF"


Member Data Documentation

list ipv6suite_test::IPv6SuiteInit::arguments [static]

ipv6suite_test::IPv6SuiteInit::wipe_build_dir


The documentation for this class was generated from the following file:
Generated on Wed Apr 4 13:20:25 2007 for INET Framework for OMNeT++/OMNEST by  doxygen 1.4.7