Changeset 686
- Timestamp:
- Oct 25, 2007 1:32:39 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/testScripts/NBbuildConfig.py
r685 r686 68 68 69 69 #--------------------------------------------------------------------- 70 # svn checkout or update the project 70 # Create names of directory where source is located and 71 # and were object, libs and executables are located (vpath). 72 # To compute vpath directory, the ./configure options need to be 73 # generated. 71 74 #--------------------------------------------------------------------- 72 75 projectBaseDir=os.path.join(configuration['rootDir'],configuration['project']) 73 76 projectCheckOutDir=os.path.join(projectBaseDir,svnVersionFlattened) 74 77 78 vpathDir='' 79 80 if 'SkipProjects' in configuration : 81 vpathDir+="No"+configuration['SkipProjects'] 82 if 'noThirdParty' in configuration : 83 if configuration['noThirdParty'] : 84 vpathDir+='-NoThirdParty' 85 vpathDir=svnVersionFlattened+\ 86 configuration['configOptions']['unique']+\ 87 vpathDir 88 vpathDir=vpathDir.replace(' ','') 89 vpathDir=vpathDir.replace('"','') 90 vpathDir=vpathDir.replace("'",'') 91 vpathDir=vpathDir.replace('--enable','') 92 if vpathDir==svnVersionFlattened : vpathDir+='-default' 93 94 fullVpathDir = os.path.join(projectBaseDir,vpathDir) 95 96 #--------------------------------------------------------------------- 97 # Create the vpath directory if it doesn't exist 98 # and remove file that indicates prior run tested ok. 99 #--------------------------------------------------------------------- 100 if not os.path.isdir(fullVpathDir) : 101 os.makedirs(fullVpathDir) 102 os.chdir(fullVpathDir) 103 if os.path.isfile('NBallTestsPassed') : os.remove('NBallTestsPassed') 104 105 #--------------------------------------------------------------------- 106 # svn checkout or update the project 107 #--------------------------------------------------------------------- 75 108 # Don't get source from subversion if previously done 76 109 if projectCheckOutDir not in SVN_HISTORY : … … 135 168 #--------------------------------------------------------------------- 136 169 skipOptions='' 137 vpathDir=''138 170 139 171 if 'SkipProjects' in configuration : … … 146 178 elif configuration['noThirdParty'] : 147 179 needSkip3PartySkipOptions=True 148 vpathDir='-NoThirdParty'149 180 if needSkip3PartySkipOptions : 150 181 thirdPartyBaseDir=os.path.join(projectCheckOutDir,'ThirdParty') … … 157 188 skipOptions=' COIN_SKIP_PROJECTS="'+skipOptions+'"' 158 189 159 # Determine the build directory, and make sure it exists160 vpathDir=svnVersionFlattened+\161 configuration['configOptions']['unique']+\162 vpathDir163 vpathDir=vpathDir.replace(' ','')164 vpathDir=vpathDir.replace('"','')165 vpathDir=vpathDir.replace("'",'')166 vpathDir=vpathDir.replace('--enable','')167 if vpathDir==svnVersionFlattened : vpathDir+='-default'168 169 fullVpathDir = os.path.join(projectBaseDir,vpathDir)170 if not os.path.isdir(fullVpathDir) :171 os.makedirs(fullVpathDir)172 190 os.chdir(fullVpathDir) 173 191 NBlogMessages.writeMessage(' Current directory: '+fullVpathDir) 174 192 175 193 # Assemble all config options together and create config command 176 194 configOptions ="-C "+configuration['configOptions']['unique'] … … 283 301 # Everything build and all tests passed. 284 302 #--------------------------------------------------------------------- 285 os.chdir(fullVpathDir)286 f=open('NBallTestsPassed','w')287 f.close()303 #os.chdir(fullVpathDir) 304 #f=open('NBallTestsPassed','w') 305 #f.close()
Note: See TracChangeset
for help on using the changeset viewer.