From 1621a95f0140f470265b2797c6670f7329d7d1f8 Mon Sep 17 00:00:00 2001 From: Marc Herbert Date: Thu, 8 Jun 2023 22:37:48 +0000 Subject: [PATCH] scripts/fuzz.sh: cosmetic move list of CONFIG_s to a bash array This saves a lot of backslashes and is easier to read. Zero change. Signed-off-by: Marc Herbert --- scripts/fuzz.sh | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/scripts/fuzz.sh b/scripts/fuzz.sh index d5fefa98a..9012b6342 100755 --- a/scripts/fuzz.sh +++ b/scripts/fuzz.sh @@ -67,13 +67,17 @@ main() : "${TEST_DURATION:=3}" : "${FUZZER_STDOUT:=/dev/stdout}" # bashism - west build -d build-fuzz -b native_posix "$SOF_TOP"/app/ -- \ - -DCONFIG_ASSERT=y \ - -DCONFIG_SYS_HEAP_BIG_ONLY=y \ - -DCONFIG_ZEPHYR_NATIVE_DRIVERS=y \ - -DCONFIG_ARCH_POSIX_LIBFUZZER=y \ - -DCONFIG_ARCH_POSIX_FUZZ_TICKS=100 \ - -DCONFIG_ASAN=y "$@" + # Move this to a new fuzz.conf overlay file if it grows bigger + local fuzz_configs=( + -DCONFIG_ASSERT=y + -DCONFIG_SYS_HEAP_BIG_ONLY=y + -DCONFIG_ZEPHYR_NATIVE_DRIVERS=y + -DCONFIG_ARCH_POSIX_LIBFUZZER=y + -DCONFIG_ARCH_POSIX_FUZZ_TICKS=100 + -DCONFIG_ASAN=y + ) + + west build -d build-fuzz -b native_posix "$SOF_TOP"/app/ -- "${fuzz_configs[@]}" "$@" mkdir -p ./fuzz_corpus