diff options
author | Andrew Scull | 2022-05-30 10:00:09 +0000 |
---|---|---|
committer | Tom Rini | 2022-06-23 12:58:18 -0400 |
commit | 36f641c54e1ad7f08552fe51f9826c1a27b662f9 (patch) | |
tree | 2740cd9df93ae778ca0861432985bf76bf0cdf3d /Kconfig | |
parent | 3f807c6b81219555ac964f2623cfcbd1103151fa (diff) |
test: fuzz: Add framework for fuzzing
Add the basic infrastructure for declaring fuzz tests and a command to
invoke them.
Signed-off-by: Andrew Scull <ascull@google.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'Kconfig')
-rw-r--r-- | Kconfig | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -161,6 +161,15 @@ config ASAN Enables AddressSanitizer to discover out-of-bounds accesses, use-after-free, double-free and memory leaks. +config FUZZ + bool "Enable fuzzing" + depends on CC_IS_CLANG + depends on DM_FUZZING_ENGINE + select ASAN + help + Enables the fuzzing infrastructure to generate fuzzing data and run + fuzz tests. + config CC_HAS_ASM_INLINE def_bool $(success,echo 'void foo(void) { asm inline (""); }' | $(CC) -x c - -c -o /dev/null) |