mirror of
https://gitlab.isc.org/isc-projects/kea
synced 2025-08-31 05:55:28 +00:00
[#3953] Put fuzzers in a for loop in meson
This commit is contained in:
144
fuzz/meson.build
144
fuzz/meson.build
@@ -5,7 +5,6 @@ endif
|
||||
current_build_dir = meson.current_build_dir()
|
||||
current_source_dir = meson.current_source_dir()
|
||||
|
||||
list = []
|
||||
foreach i : [
|
||||
'fuzz_config_kea_dhcp4',
|
||||
'fuzz_config_kea_dhcp6',
|
||||
@@ -31,6 +30,7 @@ foreach i : [
|
||||
check: true,
|
||||
)
|
||||
endforeach
|
||||
|
||||
endforeach
|
||||
foreach i : ['kea-dhcp4.conf', 'kea-dhcp6.conf']
|
||||
run_command(
|
||||
@@ -57,116 +57,46 @@ fuzz_lib = static_library(
|
||||
)
|
||||
|
||||
FUZZER_EXECUTABLES = []
|
||||
FUZZER_EXECUTABLES += executable(
|
||||
|
||||
foreach i : [
|
||||
'fuzz_config_kea_dhcp4',
|
||||
'fuzz_config_kea_dhcp4.cc',
|
||||
fuzz_sources,
|
||||
cpp_args: cpp_flags,
|
||||
dependencies: [CRYPTO_DEP, GTEST_DEP],
|
||||
include_directories: includes,
|
||||
link_with: [dhcp4_lib, fuzz_lib] + LIBS_BUILT_SO_FAR,
|
||||
install: true,
|
||||
install_dir: SBINDIR,
|
||||
install_rpath: INSTALL_RPATH,
|
||||
build_rpath: BUILD_RPATH,
|
||||
)
|
||||
|
||||
FUZZER_EXECUTABLES += executable(
|
||||
'fuzz_config_kea_dhcp6',
|
||||
'fuzz_config_kea_dhcp6.cc',
|
||||
fuzz_sources,
|
||||
cpp_args: cpp_flags,
|
||||
dependencies: [CRYPTO_DEP, GTEST_DEP],
|
||||
include_directories: includes,
|
||||
link_with: [dhcp6_lib, fuzz_lib] + LIBS_BUILT_SO_FAR,
|
||||
install: true,
|
||||
install_dir: SBINDIR,
|
||||
install_rpath: INSTALL_RPATH,
|
||||
build_rpath: BUILD_RPATH,
|
||||
)
|
||||
|
||||
FUZZER_EXECUTABLES += executable(
|
||||
'fuzz_http_endpoint_kea_dhcp4',
|
||||
'fuzz_http_endpoint_kea_dhcp4.cc',
|
||||
fuzz_sources,
|
||||
cpp_args: cpp_flags,
|
||||
dependencies: [CRYPTO_DEP, GTEST_DEP],
|
||||
include_directories: includes,
|
||||
link_with: [dhcp4_lib, fuzz_lib] + LIBS_BUILT_SO_FAR,
|
||||
install: true,
|
||||
install_dir: SBINDIR,
|
||||
install_rpath: INSTALL_RPATH,
|
||||
build_rpath: BUILD_RPATH,
|
||||
)
|
||||
|
||||
FUZZER_EXECUTABLES += executable(
|
||||
'fuzz_http_endpoint_kea_dhcp6',
|
||||
'fuzz_http_endpoint_kea_dhcp6.cc',
|
||||
fuzz_sources,
|
||||
cpp_args: cpp_flags,
|
||||
dependencies: [CRYPTO_DEP, GTEST_DEP],
|
||||
include_directories: includes,
|
||||
link_with: [dhcp6_lib, fuzz_lib] + LIBS_BUILT_SO_FAR,
|
||||
install: true,
|
||||
install_dir: SBINDIR,
|
||||
install_rpath: INSTALL_RPATH,
|
||||
build_rpath: BUILD_RPATH,
|
||||
)
|
||||
|
||||
FUZZER_EXECUTABLES += executable(
|
||||
'fuzz_packets_kea_dhcp4',
|
||||
'fuzz_packets_kea_dhcp4.cc',
|
||||
fuzz_sources,
|
||||
cpp_args: cpp_flags,
|
||||
dependencies: [CRYPTO_DEP, GTEST_DEP],
|
||||
include_directories: includes,
|
||||
link_with: [dhcp4_lib, kea_dhcpsrv_lib, fuzz_lib] + LIBS_BUILT_SO_FAR,
|
||||
install: true,
|
||||
install_dir: SBINDIR,
|
||||
install_rpath: INSTALL_RPATH,
|
||||
build_rpath: BUILD_RPATH,
|
||||
)
|
||||
|
||||
FUZZER_EXECUTABLES += executable(
|
||||
'fuzz_packets_kea_dhcp6',
|
||||
'fuzz_packets_kea_dhcp6.cc',
|
||||
fuzz_sources,
|
||||
cpp_args: cpp_flags,
|
||||
dependencies: [CRYPTO_DEP, GTEST_DEP],
|
||||
include_directories: includes,
|
||||
link_with: [dhcp6_lib, kea_dhcpsrv_lib, fuzz_lib] + LIBS_BUILT_SO_FAR,
|
||||
install: true,
|
||||
install_dir: SBINDIR,
|
||||
install_rpath: INSTALL_RPATH,
|
||||
build_rpath: BUILD_RPATH,
|
||||
)
|
||||
|
||||
FUZZER_EXECUTABLES += executable(
|
||||
'fuzz_unix_socket_kea_dhcp4',
|
||||
'fuzz_unix_socket_kea_dhcp4.cc',
|
||||
fuzz_sources,
|
||||
cpp_args: cpp_flags,
|
||||
dependencies: [CRYPTO_DEP, GTEST_DEP],
|
||||
include_directories: includes,
|
||||
link_with: [dhcp4_lib, kea_testutils_lib, fuzz_lib] + LIBS_BUILT_SO_FAR,
|
||||
install: true,
|
||||
install_dir: SBINDIR,
|
||||
install_rpath: INSTALL_RPATH,
|
||||
build_rpath: BUILD_RPATH,
|
||||
)
|
||||
|
||||
FUZZER_EXECUTABLES += executable(
|
||||
]
|
||||
FUZZER_EXECUTABLES += executable(
|
||||
i,
|
||||
f'@i@.cc',
|
||||
fuzz_sources,
|
||||
cpp_args: cpp_flags,
|
||||
dependencies: [CRYPTO_DEP, GTEST_DEP],
|
||||
include_directories: includes,
|
||||
link_with: [dhcp4_lib, kea_testutils_lib, fuzz_lib] + LIBS_BUILT_SO_FAR,
|
||||
install: true,
|
||||
install_dir: SBINDIR,
|
||||
install_rpath: INSTALL_RPATH,
|
||||
build_rpath: BUILD_RPATH,
|
||||
)
|
||||
endforeach
|
||||
foreach i : [
|
||||
'fuzz_config_kea_dhcp6',
|
||||
'fuzz_http_endpoint_kea_dhcp6',
|
||||
'fuzz_packets_kea_dhcp6',
|
||||
'fuzz_unix_socket_kea_dhcp6',
|
||||
'fuzz_unix_socket_kea_dhcp6.cc',
|
||||
fuzz_sources,
|
||||
cpp_args: cpp_flags,
|
||||
dependencies: [CRYPTO_DEP, GTEST_DEP],
|
||||
include_directories: includes,
|
||||
link_with: [dhcp6_lib, kea_testutils_lib, fuzz_lib] + LIBS_BUILT_SO_FAR,
|
||||
install: true,
|
||||
install_dir: SBINDIR,
|
||||
install_rpath: INSTALL_RPATH,
|
||||
build_rpath: BUILD_RPATH,
|
||||
)
|
||||
]
|
||||
FUZZER_EXECUTABLES += executable(
|
||||
i,
|
||||
f'@i@.cc',
|
||||
fuzz_sources,
|
||||
cpp_args: cpp_flags,
|
||||
dependencies: [CRYPTO_DEP, GTEST_DEP],
|
||||
include_directories: includes,
|
||||
link_with: [dhcp6_lib, kea_testutils_lib, fuzz_lib] + LIBS_BUILT_SO_FAR,
|
||||
install: true,
|
||||
install_dir: SBINDIR,
|
||||
install_rpath: INSTALL_RPATH,
|
||||
build_rpath: BUILD_RPATH,
|
||||
)
|
||||
endforeach
|
||||
|
||||
subdir('tests')
|
||||
|
Reference in New Issue
Block a user