Browse Source

prism-auto: count warnings / dd-warnings as well for statistic

git-svn-id: https://www.prismmodelchecker.org/svn/prism/prism/trunk@12004 bbc10eb1-c90d-0410-af57-cb519fbb1720
master
Joachim Klein 9 years ago
parent
commit
3dd1680c6e
  1. 12
      prism/etc/scripts/prism-auto

12
prism/etc/scripts/prism-auto

@ -20,7 +20,7 @@ from optparse import OptionParser
#==================================================================================================
# statistics about test results
testStats = dict(SUCCESS = 0, FAILURE = 0, SKIPPED = 0, UNSUPPORTED = 0)
testStats = dict(SUCCESS = 0, FAILURE = 0, SKIPPED = 0, UNSUPPORTED = 0, WARNING = 0, DDWARNING = 0)
# colour coding for test results
# for colour values, see https://en.wikipedia.org/wiki/ANSI_escape_code#Colors
@ -466,12 +466,18 @@ def printTestStatistics():
printColoured('FAILURE', ' Failure: ' + str(testStats['FAILURE']))
printColoured('UNSUPPORTED', ' Unsupported: ' + str(testStats['UNSUPPORTED']))
printColoured('SKIPPED', ' Skipped: ' + str(testStats['SKIPPED']))
printColoured('WARNING', ' Warnings: ' + str(testStats['WARNING']))
if (options.ddWarnings):
printColoured('WARNING', ' DD-Warnings: ' + str(testStats['DDWARNING']))
def countTestResult(msg):
if 'Error:' in msg or 'FAIL' in msg:
incrementTestStat('FAILURE')
# ignore warnings
# elif 'Warning:' in msg:
elif options.ddWarnings and re.match('Warning: CUDD reports .* non-zero references', msg):
incrementTestStat('WARNINGS')
incrementTestStat('DDWARNINGS')
elif 'Warning:' in msg:
incrementTestStat('WARNINGS')
elif 'PASS' in msg:
incrementTestStat('SUCCESS')
elif 'SKIPPED' in msg or 'NOT TESTED' in msg:

Loading…
Cancel
Save