Changeset 677
- Timestamp:
- Oct 25, 2007 6:46:10 AM (13 years ago)
- Location:
- branches/testScripts
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/testScripts/NBbuildConfig.py
r676 r677 46 46 # that are the same for every build configuration so they don't need 47 47 # to be part of the vpath directory name. 48 # Example: 'CXX= g++ -m64LDFLAGS=-lstdc++'48 # Example: 'CXX="g++ -m64" LDFLAGS=-lstdc++' 49 49 # 50 50 # configuration['SkipProjects']= List of COIN projects to skip (exclude) … … 56 56 # 57 57 # configuration['unitTest']= undefined or dictionary D where 58 # D['path']= relat aive path were unitTest is to be run from.58 # D['path']= relative path were unitTest is to be run from. 59 59 # D['command']= command to be issued to run unitTest 60 # d['checkUnitTest']= function to be called to determine if unitTest60 # D['checkUnitTest']= function to be called to determine if unitTest 61 61 # ran correctly. 62 62 #------------------------------------------------------------------------ … … 114 114 if os.path.isfile(install3rdPartyCmd) : 115 115 NBlogMessages.writeMessage(' '+install3rdPartyCmd) 116 NBosCommand.run(install3rdPartyCmd) 117 f=open('NBinstalldone','w') 118 f.close() 116 installReturn = NBosCommand.run(install3rdPartyCmd) 117 if installReturn['returnCode'] : 118 NBlogMessages.writeMsg(' warning: Install of 3rd party code in '+thirdPartyDir+' returned '+installReturn['returnCode']) 119 else : 120 f=open('NBinstalldone','w') 121 f.close() 122 stdoutfile=open(thirdPartyDir+'/NBstdout','w') 123 stdoutfile.write(installReturn['stdout']) 124 stdoutfile.close() 125 stderrfile=open(thirdPartyDir+'/NBstderr','w') 126 stderrfile.write(installReturn['stderr']) 127 stderrfile.close() 119 128 else : 120 129 NBlogMessages.writeMessage(' skipped a new download of '+d) 121 130 else : 122 131 NBlogMessages.writeMessage(' Skipped a new download into '+thirdPartyBaseDir) 123 132 124 133 #--------------------------------------------------------------------- 125 134 # Source is now available, so now it is time to run config … … 157 166 vpathDir=vpathDir.replace('--enable','') 158 167 if vpathDir==svnVersionFlattened : vpathDir+='-default' 159 168 160 169 fullVpathDir = os.path.join(projectBaseDir,vpathDir) 161 170 if not os.path.isdir(fullVpathDir) : … … 175 184 # If config was previously run, then no need to run again. 176 185 if NBcheckResult.didConfigRunOK() : 177 NBlogMessages.writeMessage(" '"+configCmd+"' previously ran. Not rerunning")186 NBlogMessages.writeMessage(" configure previously ran. Not rerunning.") 178 187 else : 179 188 NBlogMessages.writeMessage(" "+configCmd) … … 181 190 # Finally run config 182 191 result=NBosCommand.run(configCmd) 183 192 stdoutfile=open('NBconfig.stdout','w') 193 stdoutfile.write(result['stdout']) 194 stdoutfile.close() 195 stderrfile=open('NBconfig.stderr','w') 196 stderrfile.write(result['stderr']) 197 stderrfile.close() 198 184 199 # Check if configure worked 185 200 if result['returnCode'] != 0 : … … 200 215 NBlogMessages.writeMessage( ' make' ) 201 216 result=NBosCommand.run('make') 202 217 stdoutfile=open('NBmake.stdout','w') 218 stdoutfile.write(result['stdout']) 219 stdoutfile.close() 220 stderrfile=open('NBmake.stderr','w') 221 stderrfile.write(result['stderr']) 222 stderrfile.close() 223 203 224 # Check if make worked 204 225 if result['returnCode'] != 0 : … … 211 232 NBlogMessages.writeMessage( ' make test' ) 212 233 result=NBosCommand.run('make test') 213 234 stdoutfile=open('NBmaketest.stdout','w') 235 stdoutfile.write(result['stdout']) 236 stdoutfile.close() 237 stderrfile=open('NBmaketest.stderr','w') 238 stderrfile.write(result['stderr']) 239 stderrfile.close() 240 214 241 # Check if 'make test' worked 215 242 didMakeTestFail=configuration['checkMakeTest'](result,configuration['project'],"make test") … … 239 266 NBlogMessages.writeMessage( ' '+unitTestCmd ) 240 267 result=NBosCommand.run(unitTestCmd) 241 268 stdoutfile=open('NBunittest.stdout','w') 269 stdoutfile.write(result['stdout']) 270 stdoutfile.close() 271 stderrfile=open('NBunittest.stderr','w') 272 stderrfile.write(result['stderr']) 273 stderrfile.close() 274 242 275 didUnitTestFail=configuration['unitTest']['checkUnitTest'](result,configuration['project'],unitTestCmdTemplate) 243 276 if didUnitTestFail : -
branches/testScripts/newNightlyBuild.py
r676 r677 20 20 # -Skip make of project that depend on a project which make had been failing. (Similar for configure.) 21 21 # But also tell project managers of skiped project that their project was skipped. 22 # -Store output of get.XXX calls, make, make test, configures... in some files.23 # -Allow a fine configuration of which build tests to run per project.24 # -Move actual [get project, configure, make, tests] part into an extra file.25 22 26 23
Note: See TracChangeset
for help on using the changeset viewer.