cmake-init icon indicating copy to clipboard operation
cmake-init copied to clipboard

Add Support for libFuzzer Test Target in Generated Test Directory

Open avitase opened this issue 10 months ago • 0 comments

I would like to suggest adding support for libFuzzer in the generated test directory. While the current template includes dummy unit tests without relying on a specific testing framework, integrating a fuzz test target would be a valuable addition for projects that require robustness testing and input validation.

Feature request

  • Add an optional CMake target for fuzz testing using libFuzzer
  • The target should be conditionally enabled if the compiler supports fuzzing (-fsanitize=fuzzer,address for Clang and GCC (?)).
  • Include a basic fuzzing example (e.g., fuzzing a simple string-processing function).
  • Ensure that the fuzz test target integrates smoothly with existing CMake configurations and CI pipelines.

avitase avatar Feb 22 '25 17:02 avitase