[Static Analyzer] Made it easier to test new checkers using the test suite.

llvm-svn: 245637
This commit is contained in:
Gabor Horvath 2015-08-20 22:59:49 +00:00
parent 32907a6b21
commit da32a86341
1 changed files with 7 additions and 0 deletions

View File

@ -36,6 +36,10 @@ Assumptions (TODO: shouldn't need to assume these.):
For more logging, set the env variables:
zaks:TI zaks$ export CCC_ANALYZER_LOG=1
zaks:TI zaks$ export CCC_ANALYZER_VERBOSE=1
The list of checkers tested are hardcoded in the Checkers variable.
For testing additional checkers, use the SA_ADDITIONAL_CHECKERS environment
variable. It should contain a comma separated list.
"""
import CmpRuns
@ -593,4 +597,7 @@ if __name__ == '__main__':
IsReference = True
UpdateSVN = True
if os.environ.has_key('SA_ADDITIONAL_CHECKERS'):
Checkers = Checkers + ',' + os.environ['SA_ADDITIONAL_CHECKERS']
testAll(IsReference, UpdateSVN, Strictness)