This is an integration test suite for
GCC's -fanalyzer option <https://gcc.gnu.org/wiki/StaticAnalyzer>
_.
The idea is to build various C projects using a candidate installation of GCC
with -fanalyzer
, and capture the diagnostics in
SARIF <https://sarifweb.azurewebsites.net/>
_ format.
This way, the diagnostics emitted by different GCC builds can be compared i.e. the projects being built are fixed; it's the GCC version that varies.
The harness assumes the GCC being tested implements
-fdiagnostics-format=sarif-file
(added in GCC version 13).
Goals
integration testing of -fanalyzer
on real-world C projects
exercise -fanalyzer
on code written in a variety of different
styles, by different teams, using each upstream's default choice of
compilation flags.
all projects should be FLOSS (as should the test harness itself)
Non-goals
unit-testing of specific code constructs (this belongs in GCC's own test suite)
C++ (for now)
See projects.py
for the full details
allnoconfig
)Prerequisites
TODO
$ sudo pip install sarif-tools
TODO: is this in Fedora yet?
Needs a copy of https://github.com/davidmalcolm/sarif-dump checked out to a sister directory for now.
Usage
TODO