tpm2-software / tpm2-tcti-uefi

TCTI module for use with TSS2 libraries in UEFI environment
BSD 2-Clause "Simplified" License
32 stars 17 forks source link

ci: Run scan-build on clang. #15

Closed flihp closed 6 years ago

flihp commented 6 years ago

The most simple way to do this is to abandon the 'compiler' JSON element. Instead we construct the build matrix manually. By doing this we can define environment varaibles in the matrix more simply. To invoke scan-build we use an environment variable that is not defined for the gcc compiler. This prevents us from having to do tricks with the 'exclude' element.

NOTE: When test cases fail, but scan-build doesn't detect issues the clang build will succeed. This is a bit less than accurate but the gcc build will fail regardless and the failed tests caught.

Signed-off-by: Philip Tricca philip.b.tricca@intel.com