Changeset 762 for branches


Ignore:
Timestamp:
Nov 12, 2007 11:03:11 AM (12 years ago)
Author:
jpfasano
Message:

Added checking for *Done*** at end of smiUnitTest

Location:
branches/testScripts
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/testScripts/NBcheckResult.py

    r730 r762  
    4545     result['stdout'].rfind("All tests completed successfully") == -1 :
    4646    # Success message not found, assume test failed
    47     retVal = "The output does not contain the messages: 'All tests completed successfully'"
     47    retVal = "The output does not contain the message: 'All tests completed successfully'"
     48  return retVal
     49
     50# Was "*** Done! ***" written at end?
     51def endWithStarDoneStar(result,project) :
     52  retVal = None
     53  # Is the success message contained in the output?
     54  if result['stdout'][-20:].rfind("*** Done! ***") == -1 :
     55    # Success message not found, assume test failed
     56    retVal = "The output does not end with the message: '*** Done! ***'"
    4857  return retVal 
    4958
  • branches/testScripts/NBprojectConfig.py

    r761 r762  
    231231                  {'dir':'',
    232232                   'cmd':'make test',
    233                    'check':[ NBcheckResult.anythingGoes ] } ]
     233                   'check':[ NBcheckResult.rc0,
     234                             NBcheckResult.endWithStarDoneStar ] } ]
    234235SLN_BLD_TEST['Smi']=[
    235236                  {'dir':r'Smi\test',
    236237                   'cmd':r'..\MSVisualStudio\v8\unitTestSmi\Release\smiUnitTest',
    237238                   'check':[ NBcheckResult.rc0,
    238                              NBcheckResult.standardSuccessMessage ] },
     239                             NBcheckResult.endWithStarDoneStar ] },
    239240                  {'dir':r'Smi\test',
    240241                   'cmd':r'..\MSVisualStudio\v8\unitTestSmi\Debug\smiUnitTest',
    241242                   'check':[ NBcheckResult.rc0,
    242                              NBcheckResult.standardSuccessMessage ] } ]
     243                             NBcheckResult.endWithStarDoneStar ] } ]
    243244#does not have references to third party packages
    244245#TODO: need some check whether make test was successful; what is the behaviour in Smi's unittest if it fails?
Note: See TracChangeset for help on using the changeset viewer.