davidmalcolm / gcc-analyzer-integration-tests

6 stars 1 forks source link

Test harness for GCC's -fanalyzer

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


Non-goals


Current projects tested

See projects.py for the full details

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