- Timestamp:
- Oct 26, 2007 8:05:03 AM (13 years ago)
- Location:
- branches/testScripts
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/testScripts/NBbuildConfig.py
r696 r702 214 214 os.chdir(fullVpathDir) 215 215 NBlogMessages.writeMessage(' Current directory: '+fullVpathDir) 216 216 217 217 # Assemble all config options together and create config command 218 218 configOptions ="-C "+configuration['configOptions']['unique'] 219 configOptions+=configuration['configOptions']['unique']220 219 configOptions+=configuration['configOptions']['invariant'] 221 220 configOptions+=skipOptions … … 242 241 if result['returnCode'] != 0 : 243 242 error_msg = result 243 error_msg['configure flags']=configOptions 244 244 # Add contents of log file to message 245 245 logFileName = 'config.log' 246 246 if os.path.isfile(logFileName) : 247 247 logFilePtr = open(logFileName,'r') 248 error_msg['config.log'] = "config.log contains: \n" 249 error_msg['config.log'] += logFilePtr.read() 248 error_msg['config.log'] = logFilePtr.read() 250 249 logFilePtr.close() 251 250 NBemail.sendCmdMsgs(configuration['project'],error_msg,configCmd) … … 266 265 # Check if make worked 267 266 if result['returnCode'] != 0 : 267 result['configure flags']=configOptions 268 268 NBemail.sendCmdMsgs(configuration['project'],result,'make') 269 269 return … … 284 284 didMakeTestFail=configuration['checkMakeTest'](result,configuration['project'],"make test") 285 285 if didMakeTestFail : 286 result['configure flags']=configOptions 286 287 result['make test']=didMakeTestFail 287 288 NBemail.sendCmdMsgs(configuration['project'],result,"make test") … … 317 318 didUnitTestFail=configuration['unitTest']['checkUnitTest'](result,configuration['project'],unitTestCmdTemplate) 318 319 if didUnitTestFail : 320 result['configure flags']=configOptions 319 321 result['unitTest']=didUnitTestFail 320 322 NBemail.sendCmdMsgs(p,result,unitTestCmd) -
branches/testScripts/NBemail.py
r681 r702 22 22 # "make". 23 23 # cmdMsgs: the messages generated by cmd. This will typically contain 24 # errors issued by cmd .24 # errors issued by cmd and additional information about the build. 25 25 #------------------------------------------------------------------------ 26 26 def sendCmdMsgs(project,cmdMsgs,cmd): 27 27 curDir = os.getcwd() 28 28 29 29 toAddrs = [unscrambleAddress(NBuserConfig.MY_EMAIL_ADDR)] 30 30 if NBprojectConfig.PROJECT_EMAIL_ADDRS.has_key(project) \ … … 35 35 toAddrs.append(unscrambledEmailAddress) 36 36 37 subject = "NightlyBuild: "+project + " problemwhen running '" + cmd +"'"37 subject = "NightlyBuild: problem with project "+project+" when running '" + cmd +"'" 38 38 39 emailMsg = "'" + cmd + "' from directory " + curDir + " failed.\n\n" 39 emailMsg = "Dear projectmanager,\n\n" \ 40 +"the nightly build tests scripts have recognized a failure when building project "+project+". The failing command was\n\n\t"+cmd+"\n\n" \ 41 +"Details on the problem can be found below.\n" \ 42 +"You will also get a failure message if the build of your project failed because of problems with a depending projects (externals).\n" \ 43 +"We hope you find this report useful.\n\n" 40 44 41 45 emailMsg += "Operating System: "+sys.platform+" "+os.name+"\n" 42 46 emailMsg += "Host name: "+gethostname()+"\n" 43 47 48 if os.environ.has_key("HOSTTYPE") : 49 emailMsg += "Host type: "+os.environ["HOSTTYPE"]+"\n" 44 50 if os.environ.has_key("PROCESSOR_IDENTIFIER") : 45 51 emailMsg += "Processor: "+os.environ["PROCESSOR_IDENTIFIER"]+"\n" 46 47 52 if os.environ.has_key("NUMBER_OF_PROCESSORS") : 48 53 emailMsg += "Number of processors: "+os.environ["NUMBER_OF_PROCESSORS"]+"\n" 49 54 50 55 if os.environ.has_key("PATH") : 51 56 emailMsg += "PATH: "+os.environ["PATH"]+"\n" 57 58 emailMsg += "Directory: "+curDir+'\n' 59 60 if cmdMsgs.has_key("configure flags") : 61 emailMsg += "Flags for configure: "+cmdMsgs['configure flags']+'\n' 52 62 53 63 if cmdMsgs.has_key('make test') : -
branches/testScripts/NBprojectConfig.py
r693 r702 6 6 #---------------------------------------------------------------------- 7 7 # This file defines variables which describe how the specific 8 # coin-or projects are to be build and tested.8 # coin-or projects are to be tested and who are their managers. 9 9 #---------------------------------------------------------------------- 10 10 … … 75 75 PROJECT_EMAIL_ADDRS['OS'] = 'kipp _DOT_ martin _AT_ chicagogsb _DOT_ edu' 76 76 ALL_TESTS_COMPLETED_SUCCESSFULLY_CMDS['OS'] = ['make test'] 77 #third party packages are not optional here (because it uses Ipopt)77 #third party packages are not optional if Ipopt is not excluded 78 78 79 79 #---------------------------------------------------------------------- 80 80 PROJECT_EMAIL_ADDRS['CppAD'] = 'bradbell _AT_ washington _DOT_ edu' 81 81 #does not have references to third party packages 82 83 -
branches/testScripts/NBuserParametersDefault.py
r694 r702 14 14 # List of Projects to be processed by script 15 15 #---------------------------------------------------------------------- 16 PROJECTS = ['CoinUtils','DyLP','Clp','SYMPHONY','Vol','Osi','Cgl','Cbc','Ipopt','Bonmin','FlopC++','OS'] 17 18 16 PROJECTS = ['CoinUtils','DyLP','Clp','SYMPHONY','Vol','Osi','Cgl','Cbc','Ipopt','Bonmin','FlopC++','OS','CppAD'] 19 17 20 18 #--------------------------------------------------- 21 # Not sure what file this belongs in.22 19 # This data structure is intended to describe how each COIN project 23 20 # should be built. … … 63 60 [ 64 61 { 'Reference' : 'CoinUtils' }, 65 66 67 62 # And build a parallel version with Third Party 68 63 { 69 'SvnVersion': ' releases/1.2.0',64 'SvnVersion': 'latestStable', 70 65 'OptLevel': 'Default', 71 66 'ThirdParty': 'Yes', 72 'Addition ConfigOptions': '--enable-cbc-parallel'67 'AdditionalConfigOptions': '--enable-cbc-parallel' 73 68 } 74 69 ], … … 93 88 'ThirdParty': 'No', 94 89 'SkipProjects': ('Ipopt') } 90 ], 91 'CppAD' : 92 [ 93 { 'SvnVersion': 'latestStable', 'OptLevel': 'Default', 'ThirdParty': 'No' } 95 94 ] 96 95 } 97 96 97 #---------------------------------------------------------------------- 98 #On some systems the user might want to set extra options for the 99 #configure script like compilers... 100 #---------------------------------------------------------------------- 98 101 99 102 CONFIGURE_FLAGS = '' 100 103 101 104 … … 147 150 148 151 SEND_MAIL_TO_PROJECT_MANAGER = 0 149 150 #----------------------------------------------------------------------151 #On some systems the user might want to set extra options for the152 #configure script like compilers...153 #----------------------------------------------------------------------154 155 CONFIGURE_FLAGS = '' -
branches/testScripts/nightlyBuild.py
r694 r702 3 3 import os 4 4 import sys 5 #import NBuserConfig6 5 import NBprojectConfig 7 6 import NBlogMessages … … 20 19 21 20 22 23 21 # TODO: 24 # -Get some information about the platform and put this in email25 # failure message. Add text better explaining the email so project26 # managers can better understand it. Somehow remember the ./configure27 # command options and put it in the email message.28 22 # -In userConfig allow one to optionally do a clean checkout and/or config 29 # -Skip make of project that depend on a project which make had been failing.30 # (Similar for configure.) But also tell project managers of skiped31 # project that their project was skipped.32 23 # -Clean up the kludge that tests if "make test" and 'unitTest' were 33 24 # successfull
Note: See TracChangeset
for help on using the changeset viewer.