]> git.ipfire.org Git - thirdparty/systemd.git/blob - test/fuzz/meson.build
Merge pull request #12586 from ssahani/route-properties
[thirdparty/systemd.git] / test / fuzz / meson.build
1 # SPDX-License-Identifier: LGPL-2.1+
2
3 sanitize_address = custom_target(
4 'sanitize-address-fuzzers',
5 output : 'sanitize-address-fuzzers',
6 command : [meson_build_sh,
7 project_source_root,
8 '@OUTPUT@',
9 'fuzzers',
10 '-Db_lundef=false -Db_sanitize=address',
11 ' '.join(cc.cmd_array()),
12 cxx_cmd])
13
14 sanitizers = [['address', sanitize_address]]
15
16 if git.found()
17 out = run_command(
18 git,
19 '--git-dir=@0@/.git'.format(project_source_root),
20 'ls-files', ':/test/fuzz/*/*')
21 else
22 out = run_command(
23 'sh', '-c', 'ls @0@/test/fuzz/*/*'.format(project_source_root))
24 endif
25
26 fuzz_regression_tests = []
27 foreach p : out.stdout().split()
28 # Remove the last entry which is ''.
29 #
30 # Also, backslashes get mangled, so skip test. See
31 # https://github.com/mesonbuild/meson/issues/1564.
32 if not p.contains('\\')
33 fuzz_regression_tests += p
34 endif
35 endforeach