Skip to content

Commit

Permalink
Add parse to OSS-Fuzz build script
Browse files Browse the repository at this point in the history
  • Loading branch information
tdewolff committed May 22, 2020
1 parent 3eb6d1f commit 75238cb
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion tests/oss-fuzz-build.sh
Expand Up @@ -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

0 comments on commit 75238cb

Please sign in to comment.