1
0
mirror of https://github.com/systemd/systemd.git synced 2024-12-22 17:35:35 +03:00

meson: Add simple_fuzzers list

This commit is contained in:
Jan Janssen 2023-01-27 13:22:36 +01:00
parent 822cd3ff25
commit a9a7153cd2
4 changed files with 26 additions and 30 deletions

View File

@ -1938,6 +1938,7 @@ conf.set10('SYSTEMD_SLOW_TESTS_DEFAULT', slow_tests)
tests = []
simple_tests = []
fuzzers = []
simple_fuzzers = []
catalogs = []
############################################################
@ -4179,6 +4180,10 @@ endif
############################################################
foreach fuzzer : simple_fuzzers
fuzzers += [ [[fuzzer]] ]
endforeach
fuzzer_exes = []
foreach tuple : fuzzers

View File

@ -1,25 +1,15 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
fuzzers += [
[files('fuzz-bootspec.c')],
[files('fuzz-bus-label.c')],
[files('fuzz-calendarspec.c')],
[files('fuzz-catalog.c')],
[files('fuzz-compress.c')],
[files('fuzz-env-file.c')],
[files('fuzz-hostname-setup.c')],
[files('fuzz-json.c')],
[files('fuzz-time-util.c')],
[files('fuzz-udev-database.c')],
[files('fuzz-varlink.c')],
]
simple_fuzzers += files(
'fuzz-bootspec.c',
'fuzz-bus-label.c',
'fuzz-calendarspec.c',
'fuzz-catalog.c',
'fuzz-compress.c',
'fuzz-env-file.c',
'fuzz-hostname-setup.c',
'fuzz-json.c',
'fuzz-time-util.c',
'fuzz-udev-database.c',
'fuzz-varlink.c',
)

View File

@ -241,8 +241,7 @@ endif
############################################################
fuzzers += [
[files('sd-bus/fuzz-bus-message.c')],
[files('sd-bus/fuzz-bus-match.c')],
]
simple_fuzzers += files(
'sd-bus/fuzz-bus-match.c',
'sd-bus/fuzz-bus-message.c',
)

View File

@ -160,6 +160,10 @@ if install_sysconfdir
mkdir_p.format(sysconfdir / 'udev/rules.d'))
endif
simple_fuzzers += files(
'fuzz-udev-rule-parse-value.c',
)
fuzzers += [
[files('net/fuzz-link-parser.c'),
[libudevd_core,
@ -174,8 +178,6 @@ fuzzers += [
[threads,
libacl]],
[files('fuzz-udev-rule-parse-value.c')],
[files('fido_id/fuzz-fido-id-desc.c',
'fido_id/fido_id_desc.c')],
]