]> granicus.if.org Git - clang/commitdiff
[Static Analyzer] Made it easier to test new checkers using the test suite.
authorGabor Horvath <xazax.hun@gmail.com>
Thu, 20 Aug 2015 22:59:49 +0000 (22:59 +0000)
committerGabor Horvath <xazax.hun@gmail.com>
Thu, 20 Aug 2015 22:59:49 +0000 (22:59 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@245637 91177308-0d34-0410-b5e6-96231b3b80d8

utils/analyzer/SATestBuild.py

index 2d91ba41e24c8053debe2206486a57192fd5d76e..5e56afca66833244fa1b90f69ecd191123f812ee 100755 (executable)
@@ -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)