Skip to content

Commit

Permalink
Fix OSS-Fuzz build script
Browse files Browse the repository at this point in the history
  • Loading branch information
tdewolff committed Feb 26, 2021
1 parent e326c96 commit 43e6042
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions tests/oss-fuzz-build.sh
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
# compile_go_fuzzer can be found in the oss-fuzz repository
cd parse
find tests/* -maxdepth 0 -type d | while read target
root=$(pwd)
find parse/tests/* -maxdepth 0 -type d | while read target
do
cd $root/$d
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

cd ../minify
find tests/* -maxdepth 0 -type d | while read target
find minify/tests/* -maxdepth 0 -type d | while read target
do
cd $root/$d
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
done

0 comments on commit 43e6042

Please sign in to comment.