From 43e6042885eb8c709f0eeb236c24ba861d1705c7 Mon Sep 17 00:00:00 2001 From: Taco de Wolff Date: Fri, 26 Feb 2021 10:36:13 +0100 Subject: [PATCH] Fix OSS-Fuzz build script --- tests/oss-fuzz-build.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/tests/oss-fuzz-build.sh b/tests/oss-fuzz-build.sh index 9aef0aa21..caf7e8db4 100755 --- a/tests/oss-fuzz-build.sh +++ b/tests/oss-fuzz-build.sh @@ -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