2018-05-17 01:28:53 +02:00
|
|
|
tests = [
|
|
|
|
['hb-shape-fuzzer.cc'],
|
|
|
|
['hb-subset-fuzzer.cc'],
|
2020-03-11 16:59:47 +01:00
|
|
|
['hb-set-fuzzer.cc'],
|
|
|
|
['hb-draw-fuzzer.cc'],
|
2018-05-17 01:28:53 +02:00
|
|
|
]
|
|
|
|
|
|
|
|
foreach test_data : tests
|
|
|
|
fname = test_data[0]
|
|
|
|
test_name = fname.split('.')[0].underscorify()
|
|
|
|
|
|
|
|
exe = executable(test_name, [fname, 'main.cc'],
|
|
|
|
cpp_args: cpp_args,
|
2018-11-14 21:19:36 +01:00
|
|
|
include_directories: [incconfig, incsrc],
|
2018-05-17 01:28:53 +02:00
|
|
|
dependencies: deps,
|
|
|
|
link_with: [libharfbuzz, libharfbuzz_subset],
|
|
|
|
)
|
2018-05-17 23:52:36 +02:00
|
|
|
set_variable('@0@_exe'.format(test_name.underscorify()), exe)
|
2018-05-17 01:28:53 +02:00
|
|
|
endforeach
|
|
|
|
|
2018-05-17 23:52:36 +02:00
|
|
|
env = environment()
|
|
|
|
env.set('srcdir', meson.current_source_dir())
|
|
|
|
|
2018-05-18 01:25:22 +02:00
|
|
|
run_shape_fuzzer_tests = find_program('run-shape-fuzzer-tests.py')
|
|
|
|
|
|
|
|
test('shape_fuzzer', run_shape_fuzzer_tests,
|
2018-05-17 01:28:53 +02:00
|
|
|
args: [
|
2018-05-17 23:52:36 +02:00
|
|
|
hb_shape_fuzzer_exe,
|
2018-05-17 01:28:53 +02:00
|
|
|
],
|
2018-05-18 01:25:22 +02:00
|
|
|
depends: [hb_shape_fuzzer_exe, libharfbuzz, libharfbuzz_subset],
|
2018-05-17 23:52:36 +02:00
|
|
|
workdir: join_paths(meson.current_build_dir(), '..', '..'),
|
|
|
|
env: env)
|
2018-05-17 01:28:53 +02:00
|
|
|
|
|
|
|
test('subset_fuzzer', python3,
|
|
|
|
args: [
|
|
|
|
files('run-subset-fuzzer-tests.py')[0],
|
2018-05-17 23:52:36 +02:00
|
|
|
hb_subset_fuzzer_exe,
|
2018-05-17 01:28:53 +02:00
|
|
|
],
|
2020-03-24 12:33:04 +01:00
|
|
|
# as the test are ran concurrently and we have numerous ones here let's raise acceptable time
|
|
|
|
timeout: 120,
|
2018-05-17 23:52:36 +02:00
|
|
|
workdir: join_paths(meson.current_build_dir(), '..', '..'),
|
|
|
|
env: env)
|