Skip to content

Commit

Permalink
[Static Analyzer] Made it easier to test new checkers using the test …
Browse files Browse the repository at this point in the history
…suite.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@245637 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
Xazax-hun committed Aug 20, 2015
1 parent a8a5653 commit 5b3f958
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions utils/analyzer/SATestBuild.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@
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

Expand Down Expand Up @@ -593,4 +597,7 @@ def testAll(IsReferenceBuild = False, UpdateSVN = False, Strictness = 0):
IsReference = True
UpdateSVN = True

if os.environ.has_key('SA_ADDITIONAL_CHECKERS'):
Checkers = Checkers + ',' + os.environ['SA_ADDITIONAL_CHECKERS']

testAll(IsReference, UpdateSVN, Strictness)

0 comments on commit 5b3f958

Please sign in to comment.