Changeset 620 for branches/testScripts


Ignore:
Timestamp:
Oct 15, 2007 10:28:40 PM (12 years ago)
Author:
jpfasano
Message:

Updated to run Cbc's unitTest

Location:
branches/testScripts
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/testScripts/NBprojectConfig.py

    r614 r620  
    4040PROJECT_EMAIL_ADDRS['Osi'] = 'mjs _AT_ ces _DOT_ clemson _DOT_ edu'
    4141UNITTEST_DIR['Osi'] = os.path.join('Osi','test')
    42 UNITTEST_CMD['Osi'] = './unitTest -testOsiSolverInterface'
    4342UNITTEST_CMD['Osi'] = './unitTest -testOsiSolverInterface -netlibDir=_NETLIBDIR_ -cerr2cout'
    4443ALL_TESTS_COMPLETED_SUCCESSFULLY_CMDS['Osi'] = ['make test',UNITTEST_CMD['Osi']]
     
    5049#----------------------------------------------------------------------
    5150PROJECT_EMAIL_ADDRS['Cbc'] = 'jjforre _AT_ us _DOT_ ibm _DOT_ com'
     51UNITTEST_DIR['Cbc'] = os.path.join('Cbc','src')
     52UNITTEST_CMD['Cbc'] = './cbc -unitTest -miplib -dirMiplib=_MIPLIB3DIR_'
     53
    5254
    5355#----------------------------------------------------------------------
  • branches/testScripts/nightlyBuild.py

    r617 r620  
    5858      # message not found, assume test failed
    5959      retVal = 1
     60     
     61  # Cbc's "make test"
    6062  elif project=='Cbc' and buildStep=='make test' :
    6163    # Check that last the last few lines are of the form
     
    6668      # message not found, assume test failed
    6769      retVal = 1
     70
     71  # Cbc's "./cbc -unitTest -miplib dirNetlib=_MIPLIB3DIR_"
     72  elif project=='Cbc' and buildStep==NBprojectConfig.UNITTEST_CMD['Cbc'] :
     73    if rc[0]>=0 and rc[0]<=2 :
     74      # return code is between 0 and 2.
     75      # Return code between 1 and 44 is the number of test cases that
     76      # ended because maxnodes limit reached.  John Forrest says if this
     77      # is less than 3, the OK.
     78      retVal=0
     79    else :
     80      retVal=1
    6881
    6982  return retVal
Note: See TracChangeset for help on using the changeset viewer.