diff options
author | Nick Terrell <terrelln@fb.com> | 2019-07-18 00:41:41 (GMT) |
---|---|---|
committer | Nick Terrell <terrelln@fb.com> | 2019-07-18 19:29:15 (GMT) |
commit | 399a80d48e4352aeae99eb5cbd799bcee6978a3d (patch) | |
tree | 802b81ecdaecc05b8b0a9dc058d64e82f76b163e /ossfuzz | |
parent | 9b258abd93e19dece681ea59db9c31e1e27635ff (diff) | |
download | lz4-399a80d48e4352aeae99eb5cbd799bcee6978a3d.zip lz4-399a80d48e4352aeae99eb5cbd799bcee6978a3d.tar.gz lz4-399a80d48e4352aeae99eb5cbd799bcee6978a3d.tar.bz2 |
[fuzzer] Update scripts for new fuzzers
Diffstat (limited to 'ossfuzz')
-rw-r--r-- | ossfuzz/Makefile | 8 | ||||
-rwxr-xr-x | ossfuzz/ossfuzz.sh | 4 | ||||
-rwxr-xr-x | ossfuzz/travisoss.sh | 5 |
3 files changed, 11 insertions, 6 deletions
diff --git a/ossfuzz/Makefile b/ossfuzz/Makefile index 4d24944..2bb40ec 100644 --- a/ossfuzz/Makefile +++ b/ossfuzz/Makefile @@ -35,6 +35,14 @@ LZ4_CFLAGS = $(CFLAGS) $(DEBUGFLAGS) $(MOREFLAGS) LZ4_CXXFLAGS = $(CXXFLAGS) $(DEBUGFLAGS) $(MOREFLAGS) LZ4_CPPFLAGS = $(CPPFLAGS) -I$(LZ4DIR) -DXXH_NAMESPACE=LZ4_ +FUZZERS := \ + compress_fuzzer \ + decompress_fuzzer \ + round_trip_fuzzer \ + round_trip_stream_fuzzer + +all: $(FUZZERS) + # Include a rule to build the static library if calling this target # directly. $(LZ4DIR)/liblz4.a: diff --git a/ossfuzz/ossfuzz.sh b/ossfuzz/ossfuzz.sh index a76b0d6..9782286 100755 --- a/ossfuzz/ossfuzz.sh +++ b/ossfuzz/ossfuzz.sh @@ -16,8 +16,8 @@ echo "OUT: $OUT" export MAKEFLAGS+="-j$(nproc)" pushd ossfuzz -make V=1 compress_fuzzer decompress_fuzzer +make V=1 all popd # Copy the fuzzers to the target directory. -cp -v ossfuzz/compress_fuzzer ossfuzz/decompress_fuzzer $OUT/ +cp -v ossfuzz/*_fuzzer $OUT/ diff --git a/ossfuzz/travisoss.sh b/ossfuzz/travisoss.sh index 3b2f26f..5ea884c 100755 --- a/ossfuzz/travisoss.sh +++ b/ossfuzz/travisoss.sh @@ -8,10 +8,7 @@ git clone https://github.com/google/oss-fuzz.git /tmp/ossfuzz if [[ ! -d /tmp/ossfuzz/projects/lz4 ]] then echo "Could not find the lz4 project in ossfuzz" - - # Exit with a success code while the lz4 project is not expected to exist - # on oss-fuzz. - exit 0 + exit 1 fi # Modify the oss-fuzz Dockerfile so that we're checking out the current branch on travis. |