[fuzz] rename fuzzer source files and update cmake macro (#12125)

Rename all fuzzer source files in `tests/fuzz` from `{name}.cpp` to
`fuzz_{name}.cpp`.

Update the `ot_nexus_test` macro in `tests/fuzz/CMakeLists.txt` to
reflect this change, using `fuzz_{name}.cpp` as the source file while
naming the test `{name}-fuzzer`.

This change improves consistency and makes it easier to distinguish
fuzzer source files from other similarly named files during searches.
This commit is contained in:
Abtin Keshavarzian
2025-11-08 11:02:48 -08:00
committed by GitHub
parent ced33033e9
commit 6cc2a57742
7 changed files with 3 additions and 3 deletions
+3 -3
View File
@@ -56,12 +56,12 @@ macro(ot_nexus_test name)
# Macro to add an OpenThread nexus test.
#
# Nexus test name will be `nexus_{name}`. Test source file of
# `test_{name}.cpp` is used. Optional extra arguments can be
# Nexus test name will be `{name}-fuzzer`. Test source file of
# `fuzz_{name}.cpp` is used. Optional extra arguments can be
# passed to provide additional source files.
add_executable(${name}-fuzzer
${name}.cpp ${ARGN}
fuzz_${name}.cpp ${ARGN}
)
target_include_directories(${name}-fuzzer