Changeset 612 for branches


Ignore:
Timestamp:
Oct 15, 2007 8:28:53 AM (12 years ago)
Author:
jpfasano
Message:

Added special code to determine if Cbc's "make test" ran successfully.
Cbc's "make test" does not print the message "All Tests Completed Successfully", so some different checks are needed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/testScripts/nightlyBuild.py

    r611 r612  
    142142
    143143  emailMsg  = "'" + cmd + "' from directory " + curDir + " failed.\n\n"
     144  emailMsg += "Operating System: "+os.name
    144145  emailMsg += "'" + cmd + "' messages are:\n"
    145146  emailMsg += cmdMsgs
     
    164165  else :
    165166    writeLogMessage( "Failure reading pwFileName=" + SMTP_PASSWORD_FILENAME )
    166     print cmdMsgs
    167167    sys.exit(1)
    168168   
     
    209209        retVal = 1
    210210
     211  #---------------------------------------------------------------------
    211212  # Some (project,buildStep) pairs require further checking
     213  # to determine if they were successful
     214  #---------------------------------------------------------------------
     215  # Clp's "./clp -unitTest -netlib dirNetlib=_NETLIBDIR_"
    212216  if project=='Clp' and buildStep==UNITTEST_CMD['Clp'] :
    213     # Build Step is './clp -unitTest -netlib'
    214217    # Check that last netlib test case ran by looking for message of form
    215218    # '../../Data/Netlib/woodw took 0.47 seconds using algorithm either'
    216219    reexp = r"(.|\n)*\.\.(\\|/)\.\.(\\|/)Data(\\|/)Netlib(\\|/)woodw took (\d*\.\d*) seconds using algorithm either(.|\n)*"
    217     msgTail = rc[1][len(rc[1])-200:]
     220    msgTail = rc[1][-200:]
     221    if not re.compile(reexp).match(msgTail,1) :
     222      # message not found, assume test failed
     223      retVal = 1
     224  elif project=='Cbc' and buildStep=='make test' :
     225    # Check that last the last few lines are of the form
     226    # 'cbc_clp solved 2 out of 2 and took XX.XX seconds.'
     227    reexp=r"(.|\n)*cbc_clp solved 2 out of 2 and took (\d*\.\d*) seconds."
     228    msgTail = rc[1][-300:]
    218229    if not re.compile(reexp).match(msgTail,1) :
    219230      # message not found, assume test failed
Note: See TracChangeset for help on using the changeset viewer.