Author: xazax Date: Thu Aug 20 17:59:49 2015 New Revision: 245637 URL: http://llvm.org/viewvc/llvm-project?rev=245637&view=rev Log: [Static Analyzer] Made it easier to test new checkers using the test suite.
Modified: cfe/trunk/utils/analyzer/SATestBuild.py Modified: cfe/trunk/utils/analyzer/SATestBuild.py URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/utils/analyzer/SATestBuild.py?rev=245637&r1=245636&r2=245637&view=diff ============================================================================== --- cfe/trunk/utils/analyzer/SATestBuild.py (original) +++ cfe/trunk/utils/analyzer/SATestBuild.py Thu Aug 20 17:59:49 2015 @@ -36,6 +36,10 @@ Assumptions (TODO: shouldn't need to ass 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) _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits