summaryrefslogtreecommitdiffstats
path: root/clang/utils/analyzer/SATestAdd.py
Commit message (Collapse)AuthorAgeFilesLines
* Portable Python script across Python versionSerge Guelton2018-12-181-1/+1
| | | | | | | | Make scripts more future-proof by importing most __future__ stuff. Differential Revision: https://reviews.llvm.org/D55208 llvm-svn: 349504
* Portable Python script across Python versionSerge Guelton2018-12-181-8/+9
| | | | | | | | Using from __future__ import print_function it is possible to have a compatible behavior of `print(...)` across Python version. Differential Revision: https://reviews.llvm.org/D55213 llvm-svn: 349454
* [NFC] fix trivial typos in commentsHiroshi Inoue2018-01-221-2/+2
| | | | | | "the the" -> "the" llvm-svn: 323078
* [Analyzer] Make testing scripts flake8 compliantGeorge Karpenkov2017-10-021-17/+22
| | | | | | Differential Review: https://reviews.llvm.org/D38213 llvm-svn: 314692
* [Analyzer] Refactor analyzer testing scripts.George Karpenkov2017-09-221-1/+1
| | | | | | | | | | | | | - Exporting needed function for future reuse. - Idiomatic python: using with `file as f` instead of `try/finally`. - Fixing some indentation issues. - No need to reinvent python `multiprocessing.getCPUCount()` - Removing a function parameter which is always the same under all invocations. - Adding some docstrings. Differential Revision: https://reviews.llvm.org/D38156 llvm-svn: 313949
* [Analyzer] Add simple help to SATestAdd.pyGeorge Karpenkov2017-09-211-5/+6
| | | | | | Differential Revision: https://reviews.llvm.org/D38003 llvm-svn: 313924
* [analyzer] Update SATestBuild.py to enable a 'download and patch' model for ↵Devin Coughlin2015-11-071-1/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | projects. Currently the SATestBuild.py and SATestAdd.py buildbot scripts expect project sources to be checked into the project repository. This commit changes these scripts to additionally support a model where project sources are downloaded rather than checked into the repository. Sometimes projects may need to be modified (for example, to support a newer versions of clang), so the updated scripts also allow for an optional patch file that will be applied to the downloaded project source before analysis. To support this workflow, this commit changes the expected layout of a project in the repository. The project-specific helper scripts will stay in the root of each project directory, but the benchmark source itself (if checked into the repo) should now be stored in a subdirectory named 'CachedSource': project_name/ cleanup_run_static_analyzer.sh [optional] run_static_analyzer.cmd [required] download_project.sh [optional] CachedSource/ [optional] changes_for_analyzer.patch [optional] If the 'CachedSource' source directory is not present, the download script will be executed. This script should download the project source into 'CachedSource'. Then, if 'changes_for_analyzer.patch' is present its changes will be applied to a copy of 'CachedSource' before analysis. Differential Revision: http://reviews.llvm.org/D14345 llvm-svn: 252410
* [analyzer] Apply whitespace cleanups by Honggyu Kim.Ted Kremenek2015-09-081-14/+14
| | | | llvm-svn: 246978
* [analyzer] testing: add a build mode to allow C++11 testing.Anna Zaks2012-09-061-8/+10
| | | | llvm-svn: 163357
* [analyzer] Fix SATestAdd to work with SATestBuild.Jordan Rose2012-06-011-1/+1
| | | | | | | Also, eliminate global 'IsReferenceBuild' in SATestBuild. It doesn't get passed around that much. llvm-svn: 157816
* [analyzer] Testing: support for regenerate reference outputAnna Zaks2011-11-081-12/+15
| | | | | | | Change the flow of the SATestAdd so that it could be used for regenerating the reference output without exiting with an error. llvm-svn: 144141
* [analyzer] Add support for testing with individual preprocessed files.Anna Zaks2011-11-051-5/+11
| | | | llvm-svn: 143786
* [analyzer] Static Analyzer Qualification Infrastructure: Scripts to support ↵Anna Zaks2011-10-061-0/+71
basic testing of the analyzer on external projects. This can be used as a basis for setting up a buildbot. llvm-svn: 141337
OpenPOWER on IntegriCloud