libtpms/tests
Marc-André Lureau b214dabfc8 fuzz: better oss-fuzz integration
There were a few issues with the oss-fuzz integration from commit
8373f09854 ("build-sys: add oss-fuzz
support").

When building on OSS-Fuzz, the projects should use the provided CFLAGS
and CXXFLAGS and don't append any extra sanitization / fuzzing flags.

$LIB_FUZZING_ENGINE is defined to set the library to link to, and it
is a c++ library, so we should build fuzzer with c++...

Now --enable-fuzzer is only used for -fsanitize=fuzzer.

Add a tests/fuzz-main.c as fallback, to run the corpus on other builds.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
2019-04-01 11:22:03 -04:00
..
corpus-execute-command tests: add an initial corpus for fuzzing 2018-06-15 18:07:49 -04:00
base64decode.c Add a test case for the TPMLIB_DecodeBlob API 2014-01-08 11:43:37 -05:00
base64decode.sh scripting: Use #!/usr/bin/env bash rather than /bin/bash 2018-09-10 16:33:34 +00:00
common tests: Add simple test case reading PCRs and writing state file 2018-12-17 19:52:32 -05:00
freebl_sha1flattensize.c Fix support for ARM64 2014-06-30 15:04:15 -04:00
fuzz-main.c fuzz: better oss-fuzz integration 2019-04-01 11:22:03 -04:00
fuzz.cc fuzz: better oss-fuzz integration 2019-04-01 11:22:03 -04:00
fuzz.sh fuzz: better oss-fuzz integration 2019-04-01 11:22:03 -04:00
Makefile.am fuzz: better oss-fuzz integration 2019-04-01 11:22:03 -04:00
nvram_offsets.c tpm2: adapt NVRAM offsets and check structure sizes 2018-06-15 18:07:49 -04:00
oss-fuzz.sh fuzz: better oss-fuzz integration 2019-04-01 11:22:03 -04:00
run-fuzzer.sh tests: Wrap the fuzzer test in a script 2018-12-10 09:17:25 -05:00
tpm2_createprimary.c tests: Add test case for testing permanent state restore 2019-03-26 10:24:41 -04:00
tpm2_createprimary.sh tests: Add test case for testing permanent state restore 2019-03-26 10:24:41 -04:00
tpm2_pcr_read.c tests: Extend PCR and read again after restart of TPM with restored state 2019-03-26 10:24:41 -04:00
tpm2_pcr_read.sh tests: Add simple test case reading PCRs and writing state file 2018-12-17 19:52:32 -05:00