Skip to content

Commit 1602ee0

Browse files
committed
build: add FLB_TESTS_INTERNAL_FUZZ for local fuzzer test
Signed-off-by: Eduardo Silva <[email protected]>
1 parent 04cccd7 commit 1602ee0

File tree

2 files changed

+33
-30
lines changed

2 files changed

+33
-30
lines changed

CMakeLists.txt

Lines changed: 30 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -45,35 +45,36 @@ set(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/lib")
4545
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/library")
4646

4747
# Build Options
48-
option(FLB_ALL "Enable all features" No)
49-
option(FLB_DEBUG "Build with debug symbols" No)
50-
option(FLB_SMALL "Optimise for small size" No)
51-
option(FLB_COVERAGE "Build with code-coverage" No)
52-
option(FLB_JEMALLOC "Build with Jemalloc support" No)
53-
option(FLB_REGEX "Build with Regex support" Yes)
54-
option(FLB_UTF8_ENCODER "Build with UTF8 encoding support" Yes)
55-
option(FLB_PARSER "Build with Parser support" Yes)
56-
option(FLB_TLS "Build with SSL/TLS support" No)
57-
option(FLB_BINARY "Build executable binary" Yes)
58-
option(FLB_EXAMPLES "Build examples" Yes)
59-
option(FLB_SHARED_LIB "Build shared library" Yes)
60-
option(FLB_VALGRIND "Enable Valgrind support" No)
61-
option(FLB_TRACE "Enable trace mode" No)
62-
option(FLB_TESTS_RUNTIME "Enable runtime tests" No)
63-
option(FLB_TESTS_INTERNAL "Enable internal tests" No)
64-
option(FLB_MTRACE "Enable mtrace support" No)
65-
option(FLB_POSIX_TLS "Force POSIX thread storage" No)
66-
option(FLB_INOTIFY "Enable inotify support" Yes)
67-
option(FLB_SQLDB "Enable SQL embedded DB" Yes)
68-
option(FLB_HTTP_SERVER "Enable HTTP Server" No)
69-
option(FLB_BACKTRACE "Enable stacktrace support" Yes)
70-
option(FLB_LUAJIT "Enable Lua Scripting support" Yes)
71-
option(FLB_RECORD_ACCESSOR "Enable record accessor" Yes)
72-
option(FLB_SIGNV4 "Enable AWS Signv4 support" Yes)
73-
option(FLB_SYSTEM_STRPTIME "Use strptime in system libc" Yes)
74-
option(FLB_STATIC_CONF "Build binary using static configuration")
75-
option(FLB_STREAM_PROCESSOR "Enable Stream Processor" Yes)
76-
option(FLB_CORO_STACK_SIZE "Set coroutine stack size")
48+
option(FLB_ALL "Enable all features" No)
49+
option(FLB_DEBUG "Build with debug symbols" No)
50+
option(FLB_SMALL "Optimise for small size" No)
51+
option(FLB_COVERAGE "Build with code-coverage" No)
52+
option(FLB_JEMALLOC "Build with Jemalloc support" No)
53+
option(FLB_REGEX "Build with Regex support" Yes)
54+
option(FLB_UTF8_ENCODER "Build with UTF8 encoding support" Yes)
55+
option(FLB_PARSER "Build with Parser support" Yes)
56+
option(FLB_TLS "Build with SSL/TLS support" No)
57+
option(FLB_BINARY "Build executable binary" Yes)
58+
option(FLB_EXAMPLES "Build examples" Yes)
59+
option(FLB_SHARED_LIB "Build shared library" Yes)
60+
option(FLB_VALGRIND "Enable Valgrind support" No)
61+
option(FLB_TRACE "Enable trace mode" No)
62+
option(FLB_TESTS_RUNTIME "Enable runtime tests" No)
63+
option(FLB_TESTS_INTERNAL "Enable internal tests" No)
64+
option(FLB_TESTS_INTERNAL_FUZZ "Enable internal fuzz tests" No)
65+
option(FLB_MTRACE "Enable mtrace support" No)
66+
option(FLB_POSIX_TLS "Force POSIX thread storage" No)
67+
option(FLB_INOTIFY "Enable inotify support" Yes)
68+
option(FLB_SQLDB "Enable SQL embedded DB" Yes)
69+
option(FLB_HTTP_SERVER "Enable HTTP Server" No)
70+
option(FLB_BACKTRACE "Enable stacktrace support" Yes)
71+
option(FLB_LUAJIT "Enable Lua Scripting support" Yes)
72+
option(FLB_RECORD_ACCESSOR "Enable record accessor" Yes)
73+
option(FLB_SIGNV4 "Enable AWS Signv4 support" Yes)
74+
option(FLB_SYSTEM_STRPTIME "Use strptime in system libc" Yes)
75+
option(FLB_STATIC_CONF "Build binary using static configuration")
76+
option(FLB_STREAM_PROCESSOR "Enable Stream Processor" Yes)
77+
option(FLB_CORO_STACK_SIZE "Set coroutine stack size")
7778

7879
# Metrics: Experimental Feature, disabled by default on 0.12 series
7980
# but enabled in the upcoming 0.13 release. Note that development

tests/internal/CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,4 +108,6 @@ foreach(source_file ${UNIT_TESTS_FILES})
108108
endif()
109109
endforeach()
110110

111-
add_subdirectory(fuzzers)
111+
if(FLB_TESTS_INTERNAL_FUZZ)
112+
add_subdirectory(fuzzers)
113+
endif()

0 commit comments

Comments
 (0)