.github/ipc_fuzzer: use new -i 3 and -i 4 fuzz.sh options

Stop hardcoding -DCONFIG_IPC_MAJOR_x=y and use the new -3 and -4 fuzz.sh
CLI flags.

Signed-off-by: Marc Herbert <marc.herbert@intel.com>
This commit is contained in:
Marc Herbert 2024-08-27 07:03:22 +00:00 committed by Liam Girdwood
parent 2a23f3be21
commit ff57b7917f
2 changed files with 6 additions and 9 deletions

View File

@ -15,7 +15,7 @@ jobs:
strategy:
matrix:
# Keep these names short due to questionable Github UI choices
IPC: [ipc3, ipc4]
IPC: [3, 4]
steps:
- name: add i386 arch
@ -65,5 +65,6 @@ jobs:
cd workspace
clang --verbose
set -x
sof/scripts/fuzz.sh -b -- -DEXTRA_CFLAGS='-Werror' -DEXTRA_CXXFLAGS='-Werror' \
-DEXTRA_CONF_FILE='stub_build_all_${{ matrix.IPC }}.conf'
sof/scripts/fuzz.sh -b -i '${{ matrix.IPC }}' -- \
-DEXTRA_CFLAGS='-Werror' -DEXTRA_CXXFLAGS='-Werror' \
-DEXTRA_CONF_FILE='stub_build_all_ipc${{ matrix.IPC }}.conf'

View File

@ -30,7 +30,7 @@ jobs:
fail-fast: false
matrix:
# Keep these names short due to questionable Github UI choices
IPC: [IPC3, IPC4]
IPC: [3, 4]
steps:
- name: add i386 arch
@ -77,14 +77,10 @@ jobs:
cd workspace
clang --verbose
set -x
case '${{ matrix.IPC }}' in
IPC3) cmake_arg='-DCONFIG_IPC_MAJOR_3=y' ;;
IPC4) cmake_arg='-DCONFIG_IPC_MAJOR_4=y' ;;
esac
duration="${{inputs.fuzzing_duration_s}}"
duration="${duration:-301}" # pull_request has not 'inputs.' :-(
# Note libFuzzer makes a difference between -jobs and -workers (capped at nproc/2)
sof/scripts/fuzz.sh -o fuzz-stdout.txt -t "$duration" -j"$(nproc)" -- "$cmake_arg"
sof/scripts/fuzz.sh -i '${{ matrix.IPC }}' -o fuzz-stdout.txt -t "$duration" -j"$(nproc)"
- name: Upload stdout
uses: actions/upload-artifact@v4