Add libFuzzer harnesses, a cmake option to build them

This commit is contained in:
Bhargava Shastry
2019-06-28 20:49:35 +02:00
committed by Bhargava Shastry
parent 156cd8939c
commit d71375bf8a
4 changed files with 171 additions and 0 deletions

View File

@@ -72,8 +72,11 @@ before_script:
- mkdir -p build && cd build
- cmake .. -G Ninja -DCMAKE_BUILD_TYPE=$BUILD_TYPE
-DSNAPPY_REQUIRE_${CPU_LEVEL}=ON
-DSNAPPY_BUILD_FUZZERS=ON
- cmake --build .
- cd ..
script:
- build/snappy_unittest
- build/snappy_compress_uncompress_fuzzer -runs=1000 -close_fd_mask=3
- build/snappy_uncompress_fuzzer -runs=1000 -close_fd_mask=3