]> git.ipfire.org Git - thirdparty/suricata.git/commit
fuzz: remove UNITTEST dependency
authorVictor Julien <victor@inliniac.net>
Tue, 7 Apr 2020 10:41:12 +0000 (12:41 +0200)
committerVictor Julien <victor@inliniac.net>
Wed, 8 Apr 2020 20:45:48 +0000 (22:45 +0200)
commit794d9eeb83462df79f8d4b34492b86029ce360d7
treedd1b19e00c56f629c7fb3fe652aca97fc24a1b3a
parentedcb784f1ae733550aeca1260ef7f273d0c2b07c
fuzz: remove UNITTEST dependency

Expose UTH flow builder to new 'FUZZ' define as well. Move UTHbufferToFile
as well and rename it to a more generic 'TestHelperBufferToFile'.

This way UNITTESTS can be disabled. This leads to smaller code size
and more realistic testing as in some parts of the code things
behave slightly differently when UNITTESTS are enabled.
configure.ac
src/tests/fuzz/fuzz_applayerprotodetectgetproto.c
src/tests/fuzz/fuzz_decodepcapfile.c
src/tests/fuzz/fuzz_sigpcap.c
src/util-unittest-helper.c
src/util-unittest-helper.h