From 75238cb7ff12db3a3a713bf1ff6b3897ec00336e Mon Sep 17 00:00:00 2001 From: Taco de Wolff Date: Fri, 22 May 2020 14:33:57 -0400 Subject: [PATCH] Add parse to OSS-Fuzz build script --- tests/oss-fuzz-build.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/tests/oss-fuzz-build.sh b/tests/oss-fuzz-build.sh index 42e2ee60cc..f786891185 100755 --- a/tests/oss-fuzz-build.sh +++ b/tests/oss-fuzz-build.sh @@ -8,8 +8,15 @@ function compile_fuzzer { $CXX $CXXFLAGS $LIB_FUZZING_ENGINE $fuzzer.a -o $OUT/$fuzzer } +git clone https://github.com/tdewolff/parse +find $GOPATH/src/github.com/tdewolff/parse/tests/* -maxdepth 0 -type d | while read target +do + fuzz_target=`echo $target | rev | cut -d'/' -f 1 | rev` + compile_fuzzer github.com/tdewolff/parse/tests/$fuzz_target Fuzz parse-$fuzz_target-fuzzer +done + find $GOPATH/src/github.com/tdewolff/minify/tests/* -maxdepth 0 -type d | while read target do fuzz_target=`echo $target | rev | cut -d'/' -f 1 | rev` - compile_fuzzer github.com/tdewolff/minify/tests/$fuzz_target Fuzz $fuzz_target-fuzzer + compile_fuzzer github.com/tdewolff/minify/tests/$fuzz_target Fuzz minify-$fuzz_target-fuzzer done