From 52403a5b23ed5ca1960869f7b7cb6e074c19632a Mon Sep 17 00:00:00 2001 From: Sepehrdad <26747519+sepehrdaddev@users.noreply.github.com> Date: Wed, 29 Nov 2023 16:22:33 +0100 Subject: [PATCH] skipper: add more fuzz targets and dictionaries to improve coverage. (#11278) adds more fuzz targets and also dictionaries to improve the coverage. continuation of https://github.com/zalando/skipper/pull/2745 Signed-off-by: Sepehrdad Sh <26747519+sepehrdaddev@users.noreply.github.com> --- projects/skipper/build.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/projects/skipper/build.sh b/projects/skipper/build.sh index f18878f0c..6ef4aed83 100755 --- a/projects/skipper/build.sh +++ b/projects/skipper/build.sh @@ -15,4 +15,10 @@ # ################################################################################ -compile_go_fuzzer github.com/zalando/skipper/eskip FuzzParse FuzzParse +for target in $(find $SRC/skipper/fuzz/fuzz_targets -name 'Fuzz*.go'); do + target_basename=$(basename -s .go $target) + + compile_go_fuzzer github.com/zalando/skipper/fuzz/fuzz_targets $target_basename $target_basename gofuzz +done + +mv $SRC/skipper/fuzz/dictionaries/*.dict $OUT/