mirror of
https://github.com/espressif/openthread.git
synced 2026-08-02 17:17:45 +00:00
[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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user