Skip to content

Commit

Permalink
Update OSS Fuzz build script
Browse files Browse the repository at this point in the history
  • Loading branch information
tdewolff committed Feb 23, 2021
1 parent 38fba00 commit 25fb39c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/oss-fuzz-build.sh
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
# compile_go_fuzzer can be found in the oss-fuzz repository
git clone https://github.com/tdewolff/parse
find $GOPATH/src/github.com/tdewolff/parse/tests/* -maxdepth 0 -type d | while read target
find parse/tests/* -maxdepth 0 -type d | while read target
do
fuzz_target=`echo $target | rev | cut -d'/' -f 1 | rev`
compile_go_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
find minify/tests/* -maxdepth 0 -type d | while read target
do
fuzz_target=`echo $target | rev | cut -d'/' -f 1 | rev`
compile_go_fuzzer github.com/tdewolff/minify/tests/$fuzz_target Fuzz minify-$fuzz_target-fuzzer
Expand Down

0 comments on commit 25fb39c

Please sign in to comment.